How to add multi domain user emails to Azure AD

匿名 (未验证) 提交于 2019-12-03 02:33:02

问题:

We have three differnt websites and we want to use Azure AD for the purpose of single sign on. My question is how do I add users to Azure AD (via API) who could have differnt emails such as foo@gmail.com, bar@yahoo.com, baz@outlook.com, etc

When I try to add users with these emails to Azure via API, I get the error:

Property userPrincipalName is invalid.

If however I add users with azure tenant name (like reinhold@mytenant.onmicrosoft.com), they are added fine.

I searched in forums and google but to no avail.

So is there any way to add users having gmail/yahoo/outlook/other email addresses to Azure AD using API ?

Thanks

回答1:

Short answer: you can't. Azure AD will support only users whose domain name is your own onmicrosoft.com domain, or that have an email address for a custom domain for which you have the rights to represent. If you expect people to signup with @yahoo or @gmail, etc addresses, Azure AD is not the directory you are looking for.



回答2:

AAD supports consumer owned accounts through guest flows with MSA. So, your users can create an MSA for their @yahoo or @gmail account (the @outlook account is already an MSA). Then, you can invite the user to be a guest in your tenant using the Azure portal (just as you would invite an AAD user from another tenant to be a guest). See: https://azure.microsoft.com/en-us/documentation/articles/active-directory-create-users/.



标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!