New to Telerik Report Server? Start a free 30-day trial
POST api/reportserver/v2/userroles
Creates a new user role.
Request Information
URI Parameters
None.
Body Parameters
User role model.
| Name | Description | Type | Additional information |
|---|---|---|---|
| Name |
Specifies the name of the user role. | string |
Required |
| Description |
Specifies the description of the user role. | string |
None. |
| UserIds |
The IDs of the assigned to the role users. | Collection of string |
None. |
Request body formats
application/json, text/json
json
{
"Name": "HR Reports",
"Description": "Displayed to help users understand the purpose of this item.",
"UserIds": [
"10bea094586d4de999847a34856fbe97",
"0c33397c82454e7b8be4873a7faf42ad"
]
}
Response Information
Resource Description
| 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": "6853cbcdb3a",
"Name": "HR Reports",
"Description": "Displayed to help users understand the purpose of this item.",
"IsSystemRole": true,
"UserIds": [
"10bea094586d4de999847a34856fbe97",
"0c33397c82454e7b8be4873a7faf42ad"
]
}