Quantcast
Channel: Azure Active Directory forum
Viewing all articles
Browse latest Browse all 16000

User.Identity.Name adds "live.com#" to AAD users

$
0
0

I've got an API protected by AAD. I manually give users access by adding their Microsoft accounts to the relevant tenant as a user, and I use User.Identity.Name to save identifiers for owners rows on the database. This works great for my own accounts, but when adding an external MS account like me@outlook.com, User.Identity.Name returns "live.com#me@outlook.com" which looks pretty ugly in the GUI. I could strip it off of course, but I'd like to know why this is happening, and whether all external MS accounts will be displayed using the same system (so I can strip off left of first #, or something like that).

TIA

Dennis

 

Viewing all articles
Browse latest Browse all 16000

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>