Description: Adds or updates a user in a project.
Since : 7.17.4
Security: Requires a user assigned with the 'Administer the Platform' role or Project Admin permissions if admin_privileges.manage_resoures
is enabled.
Usage: PUT ${baseUrl}/access/api/v1/projects/{project_key}/users/{user}
Produces: application/json
Parameters:
Name | Datatype | Description |
---|---|---|
|
| The project key |
|
| The user's name |
|
| User object that needs to be added |
Header parameter: Authorization: Bearer
Sample Request:
{ "name": "memberName", "roles": [ "developer" ] }
Sample Response:
{ "name": "memberName", "roles": [ "developer" ] }