Reputation: 283
I have two microsoft email's. One is personal account and other is business account. Using microsoft graph API/ azure endpoint(since I am authenticating users using azure) is it possible to identify the type of account associated with the email.
Upvotes: 3
Views: 652
Reputation: 15611
Have a look at the tenant ID
.
Taken from documentation:
A GUID that represents the Azure AD tenant that the user is from. For work and school accounts, the GUID is the immutable tenant ID of the organization that the user belongs to. For personal (Microsoft) accounts, the value is 9188040d-6c67-4c5b-b112-36a304b66dad. The profile scope is required in order to receive this claim.
Upvotes: 5