/auth/v1/groups/<group ID>: GET
Gets the details of a specific group.
The following table shows which roles can access this REST API endpoint:
Data admin | Data user | Collection Admin | Admin | Service user |
---|---|---|---|---|
✓1 | ✓1 | ✓1 | ✓ | ✓1 |
1The specified group must be one that is assigned to the requesting user ID. Otherwise the command fails with error 403, "Not authorized". |
Synopsis of the request URL
curl -k -H ‘Authorization: Bearer <token>’ https://<spectrum_discover_host>/auth/v1/groups/<group_ID>
Supported request types and response formats
Supported request types:
- GET
- JSON
Examples
The following example shows how to get the details of a specific group.
Request:
curl -k -H ‘Authorization: Bearer <token>’ https://<spectrum_discover_host>/auth/v1/groups/a51f84bfeb034b12a9a362109d78bec3
Response:
(200 OK):
{
"id": "a51f84bfeb034b12a9a362109d78bec3",
"name": "test-group1",
"description": "Test Group 1",
"domain": "default"
}