/auth/v1/groups/<group_ID>/user/<user_ID>: PUT
Assigns a user to a group.
The following table shows which roles can access this REST API endpoint:
Data admin | Data user | Collection Admin | Admin | Service user |
---|---|---|---|---|
Χ | Χ | Χ | ✓ | Χ |
Synopsis of the request URL
curl -k -H 'Content-Type: application/json' -H ‘Authorization: Bearer <token>
https://<spectrum_discover_host>/auth/v1/groups/<group_ID>/user/<user_ID> -X PUT
Examples
The following example shows how to assign a user to a group:
Request:
curl -k -H 'Authorization: Bearer <token>' https://<spectrum_discover_host>/auth/v1/groups/a51f84bfeb034b12a9a362109d78bec3/user/4ee5b47f439640d29b6fac7253a64290 -X PUT
-H "Content-Type: application/json"
Response:
200
if the commend is successful.