Assigning roles to groups on projects

PUT /v3/projects/{project_id}/groups/{group_id}/roles/{role_id}

Assign a role to a group on a project. This grants the project role to every user who belongs to the group.

Source: https://docs.openstack.org/api-ref/identity/v3/index.html?expanded=assign-role-to-group-on-project-detail#assign-role-to-group-on-project

Request

Parameters

Name In Type Description
project_id path string The project ID.
group_id path string The group ID.
role_id path string The role ID.

To find out role IDs, send a GET request to /v3/roles (refer to Listing roles).

Example

# curl -ks -X PUT -H 'Content-Type: application/json' -H 'X-Auth-Token: gAAAAA<...>' -d '{}' \
https://<node_IP_addr>:5000/v3/projects/03013ec787054e78ae26806636ad18d9/\
groups/c0d675eac29945ad9dfd08aa1bb75751/roles/65551e73cbb84ef9b09506832288cc1f

Response

Status codes

Success

Code Reason
204 - No Content The server has fulfilled the request.