Assigned Roles
This resource lets you work with roles assigned to a user or a group in YouTrack.
Available since YouTrack 2026.1.
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.
Available since YouTrack 2026.1.
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. Set this attribute when creating an assignment. |
Read a List of AssignedRoles
Get all roles assigned to a user or a group.
Use query to filter assignments by scope, holder, role, or permission.
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 role assignments by the following fields:
Scope and holder filters include inherited assignments by default. To match only the specified scope or holder, append For example,
This parameter is optional. If you omit it or pass an empty value or only whitespace, the resource applies no search filter. For operators and examples, see Access Management Query Syntax. |
Sample 1
Find assignments for user 24-2, including assignments inherited through groups and project teams. Replace sample database IDs with IDs from your instance.
Sample request
Sample response body
Sample 2
Find roles assigned directly to user 24-2 in project 0-0.
Sample request
Sample response body
Sample 3
Find assignments in project 0-0 whose roles include the Read Issue permission.
Sample request
Sample response body
Assign a Role to a User or a Group
Assign a role to a user or a group.
Required permissions
For global roles, requires Low-level Admin Write 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 |
Sample 1
Assign the Issue Reader role to user 24-2 in project 0-0.
Sample request
Sample request body
Sample response body
Sample 2
Assign the Issue Reader role to user group 23-2 in project 0-0.