PUT api/reportserver/v2/users/{userId}/userroles

Updates the user roles of the specified user.

Request Information

URI Parameters

NameDescriptionTypeAdditional information
userId

User ID.

string

Required

Body Parameters

User roles model.

UpdateUserRolesModel
NameDescriptionTypeAdditional information
UserRoleIds

Specifies a list of IDs of the roles which should be assigned to the user.

Collection of string

Required

Request body formats

application/json, text/json

Sample:
{
  "UserRoleIds": [
    "sample string 1",
    "sample string 2"
  ]
}

Response Information

Resource Description

None.

In this article
Not finding the help you need?