How to send Azure AD SAML group claims using regular expressions, as I have multiple conditions to meet

P Sreekar Babu 5 Reputation points
2024-09-23T15:27:37.7666667+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 enterprise apps and I have selected source attribute name as sAMAccountName and in advanced claims I have selected customize the name of the group claim, and Name (required) is set to groups and selected Apply regex replace to groups claim content entered following in regex pattern ^.(xyz|info.Dev). and in regex replacement pattern I have mentioned ${1} also tried as $& nothing seems to be working need some help please

Microsoft 365 and Office | Development | Other
Microsoft Teams | Development
Microsoft Teams | Development
Building, integrating, or customizing apps and workflows within Microsoft Teams using developer tools and APIs
Microsoft Security | Microsoft Entra | Microsoft Entra ID
{count} votes

Your answer

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