我有两个 Microsoft 电子邮件。一种是个人账户,另一种是企业账户。使用 microsoft graph API/azure 端点(因为我使用 azure 对用户进行身份验证)可以识别与电子邮件关联的帐户类型。
最佳答案
查看租户 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.
关于azure - MS个人账户和企业账户的区别,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/45026489/