Last post Apr 28, 2015 09:58 PM by Will shao - MSFT
Apr 28, 2015 09:25 AM|kunjadiyameet|LINK
Hi I have created webapplication with Azure. I have used multi tenant single sign on with azure AD.
I have two types of user in azure AD 1. "New user in your organization" and 2. "User with an existing Microsoft account".
Authentication is working fine for both the user, for both user request is authenticated.
for type 1 user i am able to get UserProfile. but for type=2 i am getting null in user profile (note: request is authenticated).
even for type 2 user User.Identity.Name is also blank (note: authentication is done from AD and request is authenticated).
Apr 28, 2015 09:58 PM|Will shao - MSFT|LINK
I suggest you can try to this blog about why sometimes the use name is null.
Please try to change your claim or customer your claim to get other value:
By the way, you can post this issue on Azure AD forum for better support: