Skip to content
Advertisement

Assign a manager to a user using Microsoft Python SDK for Azure

Ok MS Graph/Python Gurus. How do I populate (assign a manager) to a user via the Azure Python SDK? If there is a way can you point me to it. I went as far as looking through the Python SDK source and I cannot find a solution.

Advertisement

Answer

How do I populate (assign a manager) to a user via the Azure Python SDK?

AFAIK, as of now, assigning a manager via Python SDK is not possible.

Alternatively, you can use REST API, according to documentation:

PUT https://graph.microsoft.com/v1.0/users/10f17b99-784c-4526-8747-aec8a3159d6a/manager/$ref
Content-type: application/json

{
  "@odata.id": "https://graph.microsoft.com/v1.0/users/6ea91a8d-e32e-41a1-b7bd-d2d185eed0e0"
}

References: graph api assign manager, How do I update a user’s manager in v1.0 of the new Microsoft Graph API?, and Assign a manager using Microsoft Graph .NET Client Library

User contributions licensed under: CC BY-SA
4 People found this is helpful
Advertisement