如何禁用 Windows Active Directory 中的用户。我们使用的是 Microsoft Azure。?
最佳答案
要禁用用户,您可以使用图形 API。为此,请使用 PATCH HTTP 方法对用户调用更新:
PATCH https://graph.windows.net/myorganization/users/{user_id}?api-version
并包含在正文中:
{
"accountEnabled": false
}
请参阅引用:https://msdn.microsoft.com/Library/Azure/Ad/Graph/api/users-operations#UpdateUser
/ip
关于c# - 在Azure Active Directory中,有用户禁用选项吗?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31472796/