Forum Discussion
How do you filter a SAML Attribute
We currently use the memberOf %{session.ad.last.attr.memberOf} attribute. Is there a way to filter its so we only send a single attribute for CN=ABC Users? We cannot specify this in the Access Policy because we have different IDP's and SP's using the same Policy.
- DrPsyche_375519
Nimbostratus
Hello,
I was looking for a documented way to send a subset of user groups in a SAML response. And here's what I found - https://communities.ca.com/thread/241696397view SAML assertions. Perhaps, you could find some helpful ideas here too.
- Juraj
Cirrus
Just a quick thought from top of my head - you can write an iRule to extract the data you need, and store it in the session:
when ACCESS_ACL_ALLOWED { set ad_memberOf [ACCESS::session data get "session.ad.last.attr.memberOf"] ACCESS::session data set "session.custom.memberOfABC" [string match "*CN=ABC Users*" $ad_memberOf] }
Then, you can return it in your SAML assertion via
, which will contain either%{session.custom.memberOfABC}
or0
, depending on whether the user is a member of1
CN=ABC Users
Recent Discussions
Related Content
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com