Forum Discussion
Josiah_39459
Historic F5 Account
Since you already have the memberOf session variable and this is a subset. I'd just run the split command on memberOf and iterate through the results to make your new list of F5- only ones.
https://www.tcl.tk/man/tcl8.4/TclCmd/split.htm
brad_11480
May 25, 2017Nimbostratus
Yes, perfect...
set list "|"; foreach element [split [mcget {session.ad.last.attr.memberOf}] "|"] { if { $element contains "XYZ"}{ append list "$element|"; } } return $list;
Returns all groups that contain the string "XYZ" in an abbreviated list.