Create a REGEX with EntraID to extract informations from group with multiples transformations for SAML Token

Denis R 10 Reputation points
2024-09-18T16:01:39.1266667+00:00

Hello,

We have a group in our Azure AD we want to extract the end to send in a SAML Token as attribute.

Let say we have this group: GRP-AppName-RoleName1-SubRoleName2

We wan to extract what is after "GRP-AppName-" --> RoleName1-SubRoleName2

And also put the result in lowercase and replace the - with a .

Meanning we want the end result to be rolename1.subrolename2

We dit the following test with RegexReplace()

User's image But the result is RoleName1-SubRoleName2 and we don't know how to put the result in lowercase and replace the - with .

Currently we are doing this with our current SAML Identity Provider Siteminder with the following REGEX

TRANSLATE(LCASE(ENUMERATE(memberOf,AFTER(RDN(STRING(%0)),'GRP-AppName-',TRUE))),"-",".")

How can we achieve this with the EntraID Regex?

Thanks

Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
21,469 questions
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.