简体   繁体   English

是否可以在 ASP.NET MVC 应用程序中将用户添加到 Active Directory?

[英]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?是否可以在 ASP.NET MVC 应用程序中将用户添加到 Active Directory? I can add users in Azure but this has to be done by the Azure administrator.我可以在 Azure 中添加用户,但这必须由 Azure 管理员完成。 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?对于您的问题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.答案是“”,我们可以通过在您的 ASP.NET MVC 应用程序中请求microsoft graph api来实现。

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).如果我们通过microsoft graph api来做(无论你使用“Delegate”还是“Application”权限类型),它们都需要管理员(需要管理员或管理员为应用程序分配权限)。 So for your requirement of would prefer users could create themselves as they do in local account signup , it can't be implemented.因此,对于您would prefer users could create themselves as they do in local account signup的要求,它无法实现。

If you just want users to register as guest user but not local user in Azure AD, this may be achievable.如果您只希望用户在 Azure AD 中注册为访客用户而不是本地用户,这可能是可以实现的。 You can refer to this document .你可以参考这个文件

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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