User role
In Qvalon system, each user has his own set of roles that provide them with access to one or another functionality.
View a list of available rolesAll endpoints on this page manage a user's report roles specifically (the roles that control which reports a
user can see) โ not the user's full set of permissions. Other roles (e.g. general permission roles
like ROLE_SUPERVISOR) are not affected by these endpoints.
Get user roles#
Returns the user's report roles, each with its name and description.
Request parameters:
| Request Parameter | Type | Description | Required |
|---|---|---|---|
| report | Boolean | When set, filters to only report roles | false |
Examples
200 OK
Get user role names#
Same as Get user roles, but returns just the role names, without descriptions.
Request parameters:
| Request Parameter | Type | Description | Required |
|---|---|---|---|
| report | Boolean | When set, filters to only report roles | false |
Examples
200 OK
Get user role sources#
Same as Get user roles, but each role also has
assignedDirectly โ whether the role was assigned to the user directly (as opposed to inherited some other way, e.g. through a group).Request parameters:
| Request Parameter | Type | Description | Required |
|---|---|---|---|
| report | Boolean | When set, filters to only report roles | false |
Examples
200 OK
Add roles to user#
Adds report roles to the user, in addition to the ones already assigned.
Request body:
| Attribute | Type | Description | Nullable |
|---|---|---|---|
| (body) | List of strings | The request body is a plain JSON array of role names to add | false |
Examples
200 OK
Replace user roles#
Replaces the user's report roles with the given ones. Roles not in the list are removed; roles already present are left as is.
Request body:
| Attribute | Type | Description | Nullable |
|---|---|---|---|
| (body) | List of strings | The request body is a plain JSON array of role names the user should end up with | false |
Examples
200 OK
Remove user roles#
Removes the given report roles from the user; other roles are left as is.
Request body:
| Attribute | Type | Description | Nullable |
|---|---|---|---|
| (body) | List of strings | The request body is a plain JSON array of role names to remove | false |
Examples
200 OK
Remove all user roles#
Removes all report roles from the user. Other (non-report) roles are not affected.
Examples
200 OK