Forum Discussion
boneyard
May 01, 2020MVP
this should work, use it in a variable assign to whatever session variable you want.
set mem_fields [split [mcget {session.ad.last.attr.memberOf}] "|"]; foreach mem $mem_fields { if { $mem contains "Container" } { set found $mem } }; set grp_fields [split $found "-"]; return [lindex $grp_fields 2];
if not please check apm log for error or what result you do get.