Operations with a Specific Project Role of a User
This resource lets you work with a specific role granted to a user for a specific project.
Resource | <Hub Service URL>/api/rest/users/{userID}/projectroles/{projectRoleID} |
Returned entity | ProjectRole. For the description of the entity attributes, see ProjectRole Attributes. |
Supported methods |
ProjectRole Attributes
Represents a role that a user has in a specific project.
Attributes
This table describes attributes of the ProjectRole
entity.
To receive an attribute in the response from the server, specify it explicitly in the
fields
request parameter.To update an attribute, provide it in the body of a POST request.
Field | Type | Description |
---|---|---|
id | String | The unique identifier of the project role. |
owner | Set.<authorityHolder> | The list of users and groups that this project role is granted to. |
project | Set.<project> | The list of projects in which the role is used as a resource. |
role | Set.<role> | The role that the user has in the project. |
Read a Specific Project Role of a User
Get the specific project role of a user.
Request Syntax
Request Parameters
Parameter | Type | Description |
---|---|---|
fields | String | Optional. Returns only the specified subset of the fields for each Project Role. Use Fields Syntax to define the subset. |
Sample
Request
Response Body
Remove a Specific Project Role from a User
Remove a specific project role from a user.