How to use regex pattern for cloud groups for an oidc apps with a conditional logic

Perkit, Naveen 65 Reputation points
2025-10-15T14:28:42.27+00:00

Can you tell me how to get two constant values using regexreplacement pattern in Entra ID.

I want these two groups to check if user is part of if yes, I want to print either constant A or constant B

If user belongs to this group cadabahn_network_vault_polices then output is prod

If user belongs to this group cadabahn_network_vault_polices_16char then output is 16char.

Can you please provide regex pattern and replacement pattern for this in group claim in JWT token?

Microsoft Security | Microsoft Entra | Microsoft Entra ID
0 comments No comments

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.