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": [
"1bb7a56fa2c74287a7d8b6e542e56585",
"b20e751799cb4279a90da89ab5f6354a"
]
}
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": "cd39c083ad2",
"Name": "HR Reports",
"Description": "Displayed to help users understand the purpose of this item.",
"IsSystemRole": true,
"UserIds": [
"1bb7a56fa2c74287a7d8b6e542e56585",
"b20e751799cb4279a90da89ab5f6354a"
]
}