Creates a new tenant user
Result<TenantUserViewModel> containing the created user details.
Identifier of the tenant that will own the user.
Payload describing the tenant user to create.
Request to create a new user within a tenant.
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"
Tenant user created 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."
}
]
}