User - Create a new user and simultaneously assign assets to them

Creates a new user and simultaneously assigns some assets to them

post

Asset details cannot be empty, They can either be Ids of reports, datasets or dashboards

Authorizations
HTTPRequired

Please enter a valid token

Query parameters
versionstringOptional

The requested API version

Default: 1.0
Body

Class for represting the view of user mapping.

userIdstring · uuidOptional

A public property of type Guid (a unique identifier) that has both a getter and a setter method, which allows for getting and setting the value of the UserId property.

tenantIdstring · uuid | nullableOptional

A public property of type Guid (a unique identifier) that has both a getter and a setter method, which allows for getting and setting the value of the TenantId property.

Responses
post
/users
POST /users HTTP/1.1
Host: 
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 285

{
  "userId": "123e4567-e89b-12d3-a456-426614174000",
  "tenantId": "123e4567-e89b-12d3-a456-426614174000",
  "asset": [
    {
      "assetId": "123e4567-e89b-12d3-a456-426614174000",
      "roleId": "123e4567-e89b-12d3-a456-426614174000",
      "rlsRole": [
        "text"
      ],
      "dynamicDatasetId": "123e4567-e89b-12d3-a456-426614174000"
    }
  ]
}
{
  "message": "Success Message",
  "statusCode": 200
}

Last updated