Updates an existing tenant user
Result<TenantUserViewModel> containing the updated user details with roles.
Identifier of the tenant that owns the user.
Payload describing the updates to apply to the tenant user.
Request to update an existing tenant user's profile and status.
Identifier of the tenant for which the user should be created.
1024
Email address that uniquely identifies the user.
Identifier of the actor performing the creation.
"9f060a6b-1571-4a2f-8cfb-3fc6bf5a4e51"
Azure AD object identifier for the user principal.
"d3b07384-d9a1-4655-a08e-df5f4f6d7d19"
First name associated with the user.
"Casey"
Last name associated with the user.
"Taylor"
Identifier of the tenant user to update.
256
True to keep the user enabled, false to disable access.
true
Tenant user updated successfully.
Wrapper for API operation results containing success status, error information, and return value.
True if the operation completed successfully, false otherwise.
true
True if the operation failed, false otherwise.
false
Error information returned when the operation fails.
{
"code": "ValidationError",
"message": "The request parameters failed validation.",
"info": [
"The Name field is required.",
"The Id field must be greater than 0."
]
}The result value returned when the operation is successful.
{
"id": 256,
"userId": 4242,
"tenantId": 1024,
"principalOid": "d3b07384-d9a1-4655-a08e-df5f4f6d7d19",
"firstName": "Casey",
"lastName": "Taylor",
"email": "[email protected]",
"isEnabled": true,
"roles": [
{
"id": 12,
"name": "TenantAdministrator",
"description": "Grants full tenant administration capabilities."
}
]
}