User

Updates a user.

patch/{tenantID}/users/{upnOrObjectId}

Path parameters

upnOrObjectIdstring required

The object ID or principal name of the user to update.

tenantIDstring required

The tenant ID.

Query parameters

api-versionstring required

Client API version.

Request body

immutableIdstring

This must be specified if you are using a federated domain for the user's userPrincipalName (UPN) property when creating a new user account. It is used to associate an on-premises Active Directory user account with their Azure AD user object.

usageLocationstring

A two letter country code (ISO standard 3166). Required for users that will be assigned licenses due to legal requirement to check for availability of services in countries. Examples include: "US", "JP", and "GB".

givenNamestring

The given name for the user.

surnamestring

The user's surname (family name or last name).

userType'Member' | 'Guest'

A string value that can be used to classify user types in your directory, such as 'Member' and 'Guest'.

Response

No Content.

Changes

No recorded changes to this endpoint across all 17 revisions of this API.