AzureAssociate an Azure user with business-unit roles

Associate an Azure user with business-unit roles

Microsoft Graph helper for assigning business-unit and role metadata to an Azure user in legacy Aveska flows. Examples use placeholder access tokens only.

Legacy note: this endpoint is maintained for existing V2 integrations. Prefer V3 for new API and agent workflows where an equivalent exists.

curl -X PATCH "https://graph.microsoft.com/v1.0/users/example_string" \
  -H "Content-Type: application/json" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer <ACCESS_TOKEN>" \
  -H "Authorization: Bearer YOUR_API_TOKEN" \
  -d '{
  "extension_13386503efd54891ae12a6d944f8de90_businessUnitRoleMap": "{"44":"48","45":"49"}"
}'
{}
PATCH
/v1.0/users/{azureUserObjectId}
PATCH
Base URLstring

Target server for requests. Edit to use your own host.

Bearer Token
Bearer Tokenstring
Required

Bearer token - just enter the token, "Bearer" prefix will be added automatically

Content-Typestring
Required

The media type of the request body

Options: application/json
No request body parameters defined
Request Preview
Response

Response will appear here after sending the request

Authentication

header
Authorizationstring
Required

Bearer token. Authentication token required.

Path Parameters

Headers

Content-Typestring
Example:
application/json
Authorizationstring
Example:
Bearer <ACCESS_TOKEN>

Body

application/json
dataobject
Required

Raw application/json data

Responses

Successful response