Use this API to assign users to a tenant.

Resource Information

Method

URL

Required authentication

POST

/V1/CMDB/Tenants/Users

Yes

Parameters

Name

Description

Token*required
(header)

Place the token received from the API Log in to get an authentication token.

Request*required
(body)

The body contains the following parameters:

tenantId*(string): the ID of the tenant that you assign users to.

users*(list): a list of users you want to assign. It contains two sub parameters:

ousername*(string): the name of a user.

oisTenantAdmin(bool): determine whether the assigned user is an admin.

Example:

{
  "tenantId""4e75247a-309c-4231-96a5-823b6cb1e78d",
  "users": {
    "username""NetBrain",
    "isTenantAdmin""NetBrain"
  }
}

Response

Parameter

Type

Description

Example

statusCode

integer

The returned status code of executing the API.

{
  "statusCode"790200,
  "statusDescription""success"
}

statusDescription

string

The explanation of the status code.