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 ='@abc.com'
$u = 'user@contoso.com'
$u -replace $from,$to
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
I have multiple apps that have UPN as useridentifier and various different additional claims. Trying to apply transform rule to transform from user@contoso.com to user@abc.com 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. https://learn.microsoft.com/en-us/answers/questions/1167244/azure-ad-claims-transformation-of-upn
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 ='@abc.com'
$u = 'user@contoso.com'
$u -replace $from,$to