/auth/v1/users: GET

Gets the details of the users that are created in the system.

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
1 1 1
1The specified user ID must be the same as 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/users

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 uses who are created in the system.

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

Response:

(200 OK): 
{ 
    "users": [ 
        { 
            "domain_id": "default", 
            "enabled": true, 
            "id": "2e905adec130453f888a425dfc038f9c", 
            "name": "sdadmin", 
            "options": {}, 
            "password_expires_at": null 
        }, 
        { 
            "domain_id": "default", 
            "enabled": true, 
            "id": "4ee5b47f439640d29b6fac7253a64290", 
            "name": "kris", 
            "options": {}, 
            "password_expires_at": null 
        }, 
        { 
            "domain_id": "default", 
            "enabled": true, 
            "id": "a8dbddcd66b746b9958c34fd5a28855c", 
            "name": "dataadmin-user", 
            "options": {}, 
            "password_expires_at": null 
        }, 
        { 
            "domain_id": "default", 
            "enabled": true, 
            "id": "f731680239d7457aa2bad27b276d01f4", 
            "name": "kris-tsv-txt", 
            "options": {}, 
            "password_expires_at": null 
        }, 
        { 
            "domain_id": "bbd9f2993849402490cefc015013b6e9", 
            "id": "b7be4be4f78f6c371583cf4b3617e47900477f6d09f732c2493a22b79d99a2a3", 
            "name": "dataadmin", 
            "options": {}, 
            "password_expires_at": null 
        }, 
        { 
            "domain_id": "bbd9f2993849402490cefc015013b6e9", 
            "id": "0337d1845a17fa29ff6ba83c2fb62870273030dfb4d10de8dfab2e9fbe68aeef", 
            "name": "user1", 
            "options": {}, 
            "password_expires_at": null 
        }, 
        { 
            "domain_id": "bbd9f2993849402490cefc015013b6e9", 
            "id": "d523a89af4e3c7042b564d241dcb058cd892030b63d00091128ba1d1d98a5d73", 
            "name": "user2", 
            "options": {}, 
            "password_expires_at": null 
        } 
    ] 
}