Regex for SAML group in Entra ID

P Sreekar Babu 5 Reputation points
2024-09-19T01:28:27.24+00:00

I am looking for some help on regular expression for saml groups, I have set of groups ending with xyz and few groups starting info.test, and info.dev ...etc

I have added the group claim in AzureAD and I have selected source attribute name as sAMAccountName and in advanced claims I have selected customize the name of the group claim name as groups and selected apply regex replacement to groups claim content and entered following in regex pattern ^.**xyz|ifo.Dev).**and in replacement pattern mentioned $1 I am getting output as $1 but not group name tried $& as well getting $& as output tried with ${1} but I am not getting the group name in the claim need help on it

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

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.