有什么方法可以停用并重新激活 Azure AD B2C 用户。我想实现切换 Azure AD 用户状态的功能。
如果“停用并重新激活”是指阻止用户登录。目前,这仅适用于本地帐户(不适用于来自社交提供商的帐户:Facebook、Google 等)。
您可以通过以下任一方式实现此目的:
-
The Azure portal https://portal.azure.com, Users and Groups blade > Profile > Settings, Block sign in.
-
The Microsoft Graph, by sending a PATCH request to the beta/users/ and setting the 'accountEnabled' property to false. More info here: https://learn.microsoft.com/en-us/graph/api/user-update https://learn.microsoft.com/en-us/graph/api/user-update
如果您还希望能够禁用社交帐户登录,请投票给“B2C 阻止登录社交帐户”的想法 https://feedback.azure.com/d365community/idea/4739dfe1-b625-ec11-b6e6-000d3a4f0789在反馈论坛中。
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)