Those are Guest users, by definition they should be "external" to your AD. Moreover, UPN is not the value that "links" on-premises and cloud objects, that role is played by the sourceanchor (objectGUID by default).
User principal name and #EXT#
Daniel Fedorowsky
26
Reputation points
Hello,
I have a user that when I query it by id using the Microsoft Graph Get directoryObject API his UPN contains #EXT# and ends with onmicrosoft.com
But when I look at the profile of the same user (same object id) in our AD, his UPN looks completely different. No #EXT# and different domain.
I don't understand why the same user has different UPN when I query it from Microsoft Graph than what actually appears in the AD.
Why does the user's UPN changes depending on from where I look at him? What is his "real" UPN?