View Users of a QDS Account

GET /api/v1.2/accounts/get_users

Use this API to view users of a QDS account.

Required Role

The following users can make this API call:

  • Users who belong to the system-user or system-admin group.
  • Users who belong to a group associated with a role that allows viewing an account’s details. See Managing Groups and Managing Roles for more information.
curl -X GET -H "X-AUTH-TOKEN:<AUTH-TOKEN>" -H "Content-Type: application/json" -H "Accept: application/json" \
"https://api.qubole.com/api/v1.2/accounts/get_users"

Note

The above syntax uses https://api.qubole.com as the endpoint. Qubole provides other endpoints to access QDS that are described in Supported Qubole Endpoints on Different Cloud Providers.

Authentication Token for Service Users

This API also lets you view the authentication token for Service users.

Required Role

The following users can make this API call:

  • Users who belong to the system-admin group.
  • Users who belong to a group associated with a role that has permissions to manage users. See Managing Groups and Managing Roles for more information.

Sample Response

{
 "users": [
     {
         "id": 23,
         "is_admin": false,
         "account_id": 8,
         "disabled": false,
         "user_id": 24,
         "created_at": "2020-05-27T10:26:37Z",
         "authentication_token_updated_at": "2020-05-27T10:26:37Z",
         "name": "",
         "email": "EMAIL",
         "last_login": null,
         "groups": [
             {
                 "id": 31,
                 "name": "dashboard-user",
                 "source": "system"
             },
             {
                 "id": 32,
                 "name": "everyone",
                 "source": "system"
             }
         ],
         "user_type": "service",
         "authentication_token": AUTH_TOKEN
         }
     ]
 }

View Pending Users of a QDS account

GET /api/v1.2/accounts/get_pending_users

Use this API to view pending users of a QDS account, who are awaiting an approval. You must have administration privileges to see the list of pending users for a QDS account.

Required Role

The following users can make this API call:

  • Users who belong to the system-admin group.
  • Users who belong to a group associated with a role that allows viewing an account’s details. See Managing Groups and Managing Roles for more information.
curl -X GET -H "X-AUTH-TOKEN:<AUTH-TOKEN>" -H "Content-Type: application/json" -H "Accept: application/json" \
"https://api.qubole.com/api/v1.2/accounts/get_pending_users"

Note

The above syntax uses https://api.qubole.com as the endpoint. Qubole provides other endpoints to access QDS that are described in Supported Qubole Endpoints on Different Cloud Providers.

View User Emails

GET /api/v1.2/accounts/get_user_emails

Use this API to get the users’ emails associated with the current QDS account.

Required Role

The following users can make this API call:

  • Users who belong to the system-user or system-admin group.
  • Users who belong to a group associated with a role that allows viewing an account’s details. See Managing Groups and Managing Roles for more information.
curl -X GET -H "X-AUTH-TOKEN:<AUTH-TOKEN>" -H "Content-Type: application/json" -H "Accept: application/json" \
"https://api.qubole.com/api/v1.2/accounts/get_user_emails"

Note

The above syntax uses https://api.qubole.com as the endpoint. Qubole provides other endpoints to access QDS that are described in Supported Qubole Endpoints on Different Cloud Providers.