如何在Azure AD B2C中停用和重新激活用户 [英] How to deactivate and reactivate user in Azure AD B2C
问题描述
是否有任何方法可以停用和重新激活Azure AD B2C用户.我想实现可切换Azure AD用户状态的功能.
Is there any way to deactivate and reactivate Azure AD B2C user. I want to implement functionality which toggles Azure AD user status.
推荐答案
如果通过停用并重新激活"表示阻止用户登录.目前,这仅适用于本地帐户(不适用于来自社交服务提供商的帐户:Facebook, Google等).
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:
-
Azure门户网站,用户和组"边栏>个人资料>设置,阻止登录.
The Azure portal, Users and Groups blade > Profile > Settings, Block sign in.
Microsoft Graph,通过将PATCH请求发送到 beta /users/并将'accountEnabled'属性设置为false.此处的更多信息: https://graph.microsoft.io/en-us/docs/api-reference/beta/api/user_update
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
如果您还希望禁用社交帐户的登录,我建议您在Azure AD B2C UserVoice论坛中创建一个条目,请求该功能:
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
这篇关于如何在Azure AD B2C中停用和重新激活用户的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!