使用Python从azure active directory中删除用户

使用Python从azure active directory中删除用户,python,azure-active-directory,Python,Azure Active Directory,我的任务是使用Python在azure active directory中删除用户/更新用户属性 我搜索了一下,找不到任何解决办法 非常感谢您的帮助 谢谢 运行要删除用户并更新用户属性,可以在python中调用Microsoft Graph API 一, 二, 要在python中调用Microsoft Graph,只需参考此示例代码。Hi,如果有帮助,请将其标记为答案,只需单击类似“非常感谢”的选项即可:- DELETE https://graph.microsoft.com/v1.0/user

我的任务是使用Python在azure active directory中删除用户/更新用户属性

我搜索了一下,找不到任何解决办法

非常感谢您的帮助

谢谢


运行

要删除用户并更新用户属性,可以在python中调用Microsoft Graph API

一,

二,


要在python中调用Microsoft Graph,只需参考此示例代码。

Hi,如果有帮助,请将其标记为答案,只需单击类似“非常感谢”的选项即可:-
DELETE https://graph.microsoft.com/v1.0/users/{user-id}
PATCH https://graph.microsoft.com/v1.0/me
Content-type: application/json

{
  "businessPhones": [
    "businessPhones-value"
  ],
  "officeLocation": "city-value"
}