
om002 (om002) asked a question.
I am looking to build a SAML attribute that can translate a group name based upon a pattern . So any group that begins with "G_APATTERN" would get translated to remove the G_APATTERN and just have the remainder as the value. The SAML attribute would then have a CSV list of those groups. I can easily do this in an OIDC claim but cannot find a way to do this in a SAML attribute. I am trying to use the Groups.startsWith along with the String.replace and Arrays.toCsvString functions. It looks like both the SAML attribute and the profile mapping does not support the Groups.startsWith functions. I can use the isMemberOfGroupNameStartsWith but that only returns a boolean and the getFilteredGroups requires hard coded group ids. Any suggestions are appreciated.

Hello,
Thank you for reaching out to us, if you have already tried using those expressions in a combination I'm not sure there is a way to properly make this expression work in the way you intend it to.
In such situations, as you say isMemberOfGroupNameStartsWith is used more often than not.
Thank you.