An API that connects multiple Microsoft services, enabling data access and automation across platforms
Issue a PATCH request against the /me (or /user/{userid} endpoint), with the following JSON payload:
If performing this on behalf of another user, make sure you have Directory.AccessAsUser.All permissions.