/auth/v1/users/users_summary: GET
Gets the list of users and their domain details.
The following table shows which roles can access this REST API endpoint:
Data admin | Data user | Collection Admin | Admin | Service user |
---|---|---|---|---|
✓ | ✓1 | ✓ | ✓ | ✓1 |
1 The specified user ID must be the same as
the requesting user ID. Otherwise the command fails with error 403, "Not authorized". Data users can access this API to retrieve only those user details they are entitled to view. |
Synopsis of the request URL
curl -k -H ‘Authorization: Bearer <token>’ https://<spectrum_discover_host>/auth/v1/users/users_summary
Supported request types and response formats
Supported request types:
- GET
- JSON
Examples
The following example shows how to get the user details.
Request:
curl -k -H ‘Authorization: Bearer <token>’ https://<spectrum_discover_host>/auth/v1/users/users_summary
Response:
(200 OK):
{
"users": [
{
"domain_id": "default",
"domain_name": "Default",
"enabled": true,
"id": "7d040d976f924d60b5f39f0648950d1b",
"name": "sdadmin",
"options": {},
"password_expires_at": null
},
{
"domain_id": "a69001e854174dc1a4e0c98f712744bb",
"domain_name": "lldap",
"id": "1e8155daee6f021008a09aca09e1473d823ca7128d16ba25b3a10a7c1aa3433e",
"name": "user2_NoGroup",
"options": {},
"password_expires_at": null
},
{
"domain_id": "a69001e854174dc1a4e0c98f712744bb",
"domain_name": "lldap",
"id": "38f5434fe9d12fcb3278deb29fb104441b87d040f5774bd545a2d1d0c7adaa7f",
"name": "user5_SystemAdmin",
"options": {},
"password_expires_at": null
}
]
}