简体   繁体   中英

Allow all domains when adding a new user to Azure B2C using the microsoft Graph API

I am creating user with gmail, Facebook and any business account with azure ad. It will not create a new account with this domain. It uses a its custom domain for create account that we created in azure costum domain.


The domain portion of the userPrincipalName property is invalid. You must use one of the verified domain names in your organization.


my login feature is independent of domain can any help me here.

The domain portion of the userPrincipalName property is invalid. You must use one of the verified domain names in your organization.

Seems you are getting above error if I am not wrong. You might get this type of error when you added your custom domain in Azure AD tenant, but you haven't verified that domain yet. Would suggest you to please verified that custom domain in Azure AD by adding TXT records of your domain.

Please refer this Microsoft Document to know how to verified domain.

Coming to your next problem you can add your Gmail or Facebook users in Azure AD by sending them Invitation as well as a guest user.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM