How to deactivate and reactivate user in Azure AD B2C

女生的网名这么多〃 提交于 2019-12-24 05:46:19

问题


Is there any way to deactivate and reactivate Azure AD B2C user. I want to implement functionality which toggles Azure AD user status.


回答1:


If by "deactivate and reactivate" you mean prevent the user from signing in. This is currently only possible for local accounts (not accounts from social providers: Facebook, Google, etc).

You can achieve this by either:

  1. The Azure portal, Users and Groups blade > Profile > Settings, Block sign in.

  2. The Microsoft Graph, by sending a PATCH request to the beta/users/ and setting the 'accountEnabled' property to false. More info here: https://graph.microsoft.io/en-us/docs/api-reference/beta/api/user_update

If you'd like to be able to disable sign-in for social accounts as well, I'd recommend you create an entry in the Azure AD B2C UserVoice forum requesting this feature:

https://feedback.azure.com/forums/169401-azure-active-directory/category/160596-b2c



来源:https://stackoverflow.com/questions/41438100/how-to-deactivate-and-reactivate-user-in-azure-ad-b2c

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!