Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to add multi domain user emails to Azure AD

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 [email protected], [email protected], [email protected], 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 [email protected]), 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

like image 284
dev02 Avatar asked Oct 30 '22 20:10

dev02


1 Answers

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.

like image 59
Luis Delgado Avatar answered Nov 15 '22 07:11

Luis Delgado