<h1>PUT api/reportserver/v2/users/{userId}/roles</h1>
<div>
<p>
Updates the user roles of the specified user.
</p>

<h2>Request Information</h2>

<h3>URI Parameters</h3>
<table class="help-page-table">
<thead>
<tr><th>Name</th><th>Description</th><th>Type</th><th>Additional information</th></tr>
</thead>
<tbody>
<tr>
<td class="parameter-name">userId</td>
<td class="parameter-documentation">
<p>User ID.</p>
</td>
<td class="parameter-type">
string

</td>
<td class="parameter-annotations">
<p>Required</p>
</td>
</tr>
</tbody>
</table>

<h3>Body Parameters</h3>

<p>User roles model.</p>

<a href="/implementer-guide/apis/rest-api/v2/updateuserrolesmodel">UpdateUserRolesModel</a>

<table class="help-page-table">
<thead>
<tr><th>Name</th><th>Description</th><th>Type</th><th>Additional information</th></tr>
</thead>
<tbody>
<tr>
<td class="parameter-name">UserRoleIds</td>
<td class="parameter-documentation">
<p>
Specifies a list of IDs of the roles which should be assigned to the user.
</p>
</td>
<td class="parameter-type">
Collection of string

</td>
<td class="parameter-annotations">
<p>Required</p>
</td>
</tr>
</tbody>
</table>
<h3>Request body formats</h3>
<div>
<h4 class="sample-header">application/json, text/json</h4>
<div class="sample-content">

```json
{
  "UserRoleIds": [
    "17d51739173",
    "32c4df34884"
  ]
}
```

</div>
</div>

<h2>Response Information</h2>

<h3>Resource Description</h3>

<p></p>

<p>None.</p>

</div>
