Customize the name of the group claim with reg ex

Arvind Kumar 0 Reputation points
2023-07-18T17:29:25+00:00

I have a requirement to replace the Azure group starting with Legal.CLM.General_Write to General_Write. I am trying to achieve with using "Apply regex replace to groups claim content"

In Regex pattern field I added "^Legal.CLM."

In Regex replacement pattern if I am adding anything then it is appending it to group name. What should I use in replacement pattern so that I will get result as General_Write

<AttributeValue>\sGeneral_Write</AttributeValue>
<AttributeValue>nullGeneral_Write</AttributeValue>
<AttributeValue>''General_Write</AttributeValue>
Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
23,297 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. James Hamil 26,996 Reputation points Microsoft Employee
    2023-07-18T18:41:59.06+00:00

    Hi @Arvind Kumar , please try the following:

    • Regex pattern: ^Legal\.CLM\.(.+)
    • Replacement pattern: General_Write

    Please let me know if you have any questions and I can help you further.

    If this answer helps you please mark "Accept Answer" so other users can reference it.

    Thank you,

    James


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.