This forum has migrated to Microsoft Q&A. Visit Microsoft Q&A to post new questions.
We need to send domain name as a claim. We can pull UPN of a user and take values after @
for eg:- my upn is nidhin@asia.com . I just need to send asia.com in a claim. Is this possible using RegExReplace()
Regards, Nidhin.CK
Hi following rule might help you:
c:[Type == "http://schemas.xmlsoap.org/ws/2005/05/identity/claims/upn"] => issue(Type = "http://YOURSCHEMA.DEFINITION.URI/PATH/DOMAIN", Value = regexreplace(c.Value, "^.*@", ""));
HTH
Martin