POST api/reportserver/v2/users/{id}/permissions
Creates a new permission for the specified user/user role.
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
id |
The ID of the user/user role. |
string |
Required |
Body Parameters
Permission model.
CreatePermissionModelName | Description | Type | Additional information |
---|---|---|---|
Access |
Specifies the access permission. |
AccessPermission |
Required |
ResourceId |
Identifies the resource for which the permission applies. |
string |
None. |
Scope |
Specifies the permission scope. |
PermissionScope |
Required |
Request body formats
application/json, text/json
{ "Access": 1, "ResourceId": "sample string 1", "Scope": 0 }
Response Information
Resource Description
PermissionName | Description | Type | Additional information |
---|---|---|---|
Id |
Permission identifier. |
string |
None. |
PermissionCategory |
Specifies the permission category. |
PermissionCategory |
None. |
Access |
Specifies the access permission. |
AccessPermission |
None. |
ResourceId |
Specifies the ID of the secured resource. |
string |
None. |
Scope |
Specifies the scope of the permission. |
integer |
None. |
Response Formats
application/json, text/json
{ "Id": "sample string 1", "PermissionCategory": 0, "Access": 1, "ResourceId": "sample string 2", "Scope": 3 }