简体   繁体   中英

Is it possible to add a user to Active Directory in an ASP.NET MVC application?

Is it possible to add a user to Active Directory in an ASP.NET MVC application? I can add users in Azure but this has to be done by the Azure administrator. I would prefer users could create themselves as they do in local account signup.

For your question Is it possible to add a user to Active Directory in an ASP.NET MVC application? . The answer is " yes ", we can do it by request microsoft graph api in your ASP.NET MVC application.

If we do it by microsoft graph api(no matter you use "Delegate" or "Application" permission type), both of them need administrator (need administrator or administrator assign permission to the application). So for your requirement of would prefer users could create themselves as they do in local account signup , it can't be implemented.

If you just want users to register as guest user but not local user in Azure AD, this may be achievable. You can refer to this document .

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