如何将多域用户电子邮件添加到Azure AD [英] How to add multi domain user emails to Azure AD

查看:147
本文介绍了如何将多域用户电子邮件添加到Azure AD的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们有三个不同的网站,并且我们希望将Azure AD用于单点登录.我的问题是我如何(通过API)将用户添加到Azure AD(可能通过foo @ gmail.com,bar @ yahoo.com,baz @ outlook.com等)发送不同的电子邮件

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

当我尝试通过API将带有这些电子邮件的用户添加到Azure时,出现错误消息:

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

Property userPrincipalName is invalid.

但是,如果我添加的用户具有蔚蓝的租户名称(例如reinhold@mytenant.onmicrosoft.com),则会很好地添加他们.

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

我在论坛和Google中进行了搜索,但无济于事.

I searched in forums and google but to no avail.

有什么方法可以使用API​​将具有gmail/yahoo/outlook/其他电子邮件地址的用户添加到Azure AD?

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

谢谢

推荐答案

简短的回答:不能. Azure AD仅支持其域名是您自己的 onmicrosoft.com 域或具有您有权代表的自定义域的电子邮件地址的用户.如果您希望人们使用@yahoo或@gmail等地址进行注册,则Azure AD不是您要查找的目录.

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.

这篇关于如何将多域用户电子邮件添加到Azure AD的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆