New to Telerik Report Server? Start a free 30-day trial
GET api/reportserver/v2/users/{userId}/userroles
Returns the user roles of the specified user.
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| userId |
User ID. | string |
Required |
Body Parameters
None.
Response Information
Resource Description
Collection of UserRole
| Name | Description | Type | Additional information |
|---|---|---|---|
| Id |
Specifies the role identifier. | string |
Required |
| Name |
Specifies the user role name. | string |
Required |
| Description |
Specifies the description of the user role. | string |
None. |
| IsSystemRole |
Indicates whether the user role is a system role or not. | boolean |
None. |
| UserIds |
Returns a list of IDs of users that are assigned to the role. | Collection of string |
None. |
Response Formats
application/json, text/json
json
[
{
"Id": "c12dbf069db",
"Name": "Sales Reports",
"Description": "Displayed to help users understand the purpose of this item.",
"IsSystemRole": true,
"UserIds": [
"5285343273c243b08867ea1234864f1e",
"aa597c192b10412682ef633ab3b66f40"
]
},
{
"Id": "ec31bda64c1",
"Name": "HR Reports",
"Description": "Displayed to help users understand the purpose of this item.",
"IsSystemRole": true,
"UserIds": [
"de0dbb197c6c4a2a8599ed955dfc2bbb",
"52417821ea054a9280f368275aca8b7f"
]
}
]