/auth/v1/groups/<group_id>/role_assignments: GET

Returns a list of the roles and associated collections assigned to the group where applicable.

The following table shows which roles can access this REST API endpoint:
Table 1. Access by role
Data admin Data user Collection Admin Admin Service user
X X

Synopsis of the request URL

curl -k -H ‘Authorization: Bearer <token>’ https://<spectrum_discover_host>/auth/v1/groups/<group_id>/role_assignments 

Supported request types and response formats

Supported request types:
  • GET
Supported response formats:
  • JSON

Examples

The following example shows how to get the details of the roles that is assigned to a specific group:

Request:
curl -k -H ‘Authorization: Bearer <token>’ https://<spectrum_discover_host>/auth/v1/groups/a51f84bfeb034b12a9a362109d78bec3/role_assignments 

Response:

Returns 200 OK:
{  
    "roles":[  
        {  
            "collections":[  
                {  
                    "description":"Bootstrap project for initializing the cloud.",
                    "domain_id":"default",
                    "enabled":true,
                    "id":"09dd9136eaa6416784d6c5bdf3fa2f78",
                    "is_domain":false,
                    "name":"spectrum-discover",
                    "parent_id":"default",
                    "tags":[  
                    ]
                },
                {  
                    "description":"kutle",
                    "domain_id":"default",
                    "enabled":true,
                    "id":"40b0ea6fca7a4bafa38581cb508aa373",
                    "is_domain":false,
                    "name":"some-collection",
                    "parent_id":"default",
                    "tags":[  
                    ]
                }
            ],
            "domain_id":null,
            "id":"5f365cf289d14c93a986b8bea976f92b",
            "name":"collectionadmin"
        }
    ]
}