SAML tranformation using regexreplace not working as expected

GT 1 Reputation point
2024-08-22T14:35:53.8733333+00:00

SAML tranformation using regexreplace not working as expected
have usernames "user-123" that need to be "user_123" because of the application limitations.

SAML Attribute transformations on NameID
user attribute used: onpremisesamaccountname.
transformation1: Touppercase
transformation2: RegexReplace
----> match pattern '-'
----> replacement pattern '_'

i would expect the tranformation to ignore any string that doesnt contain '-' but instead i think it errors? as it just sends a guid for that SAML attribute value

can someone explain how this fuction is designed to work?
additionally there is not a way to run a transformation on the value if the "specify output if no match"
if my app cap sensitive i need this as well.

Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
21,266 questions
{count} votes

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.