Azure AD RegEx claims type transformation rule for SAML applications

Thangaraj Lakshmanan 90 Reputation points

I have multiple apps that have UPN as useridentifier and various different additional claims.  Trying to apply transform rule to transform from to for useridentifier attribute without changing the other attributes. In below article mentioned the steps but I am looking for PowerShell command or Microsoft Graph PowerShell to perform the activity on multiple apps.

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
10,832 questions
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,158 questions
Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
19,844 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Rich Matheisen 45,111 Reputation points

    I don't know about 'claims', but if all you want is a regex to substitute one value for another, try this:

    $from = '@contoso\.com'
    $to =''
    $u = ''
    $u -replace $from,$to
    0 comments No comments