Assigned Roles
This resource lets you work with roles assigned to a user or a group in YouTrack.
Resource | /api/assignedRoles |
|---|---|
Returned entity | AssignedRole. For the description of the entity attributes, see Supported Fields section. |
Supported methods |
AssignedRole attributes
Represents a role assigned to a user or a group in a specific scope.
Attributes
This table describes attributes of the AssignedRole entity.
To receive an attribute in the response from the server, specify it explicitly in the
fieldsrequest parameter.To update an attribute, provide it in the body of a POST request.
Field | Type | Description |
|---|---|---|
id | String | The database ID of the assigned role. |
role | The role that is assigned. | |
scope | The scope where the role is assigned. Possible values: Global, Organization, or Project. | |
holder | The user or group that holds the role. |
Read a List of AssignedRoles
Get all roles assigned to a user or a group.
Filter the roles by the role holder using query.
Required permissions
For global roles, requires Low-level Admin Read permission.
For organization roles, requires Update Organization permission.
For project roles, requires Update Project permission.
Request syntax
null | The database ID of AssignedRole |
|---|
Request parameters
Parameter | Type | Description |
|---|---|---|
fields | String | A list of AssignedRole attributes that should be returned in the response. If no field is specified, only the |
$skip | Int | Optional. Lets you set a number of returned entities to skip before returning the first one. |
$top | Int | Optional. Lets you specify the maximum number of entries that are returned in the response. If you don't set the $top value, the server limits the maximum number of returned entries. The server returns a maximum of 42 entries for most resources that return collections. For more information, see Pagination. |
query | String | Filter the roles by the role holder using query. The query is a string in the following format: |