For more information regarding the security incident at F5, the actions we are taking to address it, and our ongoing efforts to protect our customers, click here.

Forum Discussion

heenakhanam0708's avatar
heenakhanam0708
Icon for Altocumulus rankAltocumulus
May 30, 2025
Solved

How to get group name CN from session.ad.last.attr.memberOf when there are multiple attribute value

Hi all,   When I use the session.ad.last.attr.memberOf variable the group values are like:   saml2:Attribute Name="groups" saml2:AttributeValue CN=webaccess,OU=Users,OU=mydomain,DC=com /saml2:At...
  • Injeyan_Kostas's avatar
    Injeyan_Kostas
    Jun 17, 2025

    I found an error though causing duplicate entries

    you can use this one as custom expression

    set result ""
    set groups [mcget {session.ad.last.attr.memberOf}]
    foreach {full match} [regexp -all -inline {CN=([^,]+)} $groups] {
        append result "| $match "
    }
    append result "|"
    return $result