Delegated Groups for Users

As a user in a Delegated Group, you can return a list of users for an account as well as a list of attributes for the current user.

This topic contains:

Return a List of Users

Sample RequestSample Response
Copy
Copied
curl -s --location --request GET 'https://{{baseUrl}}/v3/user/list' \
--header 'Authorization: TD1 123/456789xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' \
-H 'content-type: application/json' \
Copy
Copied
{
  "users": [
    {
      "id": 8361,
      "first_name": "User2First",
      "last_name": "2User2Last",
      "email": "qa_test+user2@treasure-data.com",
      "phone": null,
      "gravatar_url": "https://secure.gravatar.com/avatar/91172573bb195491aeb5c6346068c35f?size=80",
      "administrator": false,
      "created_at": "2020-03-14T04:55:16Z",
      "updated_at": "2023-12-08T14:24:02Z",
      "name": "User2First 2User2Last",
      "account_owner": false,
      "delegated_admin": false,
      "delegated_policy_groups": [],
      "policy_group_tags": [
        "Euro"
      ],
      "organization": null,
      "roles": []
    },
    {
      "id": 8482,
      "first_name": "delegated",
      "last_name": "admin 1",
      "email": "qa_test+admin1@treasure-data.com",
      "phone": null,
      "gravatar_url": "https://secure.gravatar.com/avatar/753a1124fbb84ca1a49a015c3b091411?size=80",
      "administrator": false,
      "created_at": "2020-03-17T03:04:29Z",
      "updated_at": "2023-12-13T07:45:19Z",
      "name": "delegated admin 1",
      "account_owner": false,
      "delegated_admin": true,
      "delegated_policy_groups": [
        "create_from_ui_by_admin1"
      ],
      "policy_group_tags": [
        "Germany",
        "NEXT",
        "PG-1",
        "create_from_ui_by_admin1"
      ],
      "organization": null,
      "roles": []
    }
  ]
}

Return the Attributes of the Current User

Sample RequestSample Response
Copy
Copied
curl -s --location --request GET 'https://{{baseUrl}}/v3/user/show' \
--header 'Authorization: TD1 123/456789xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' \
-H 'content-type: application/json' \
Copy
Copied
{
  "id": 8482,
  "first_name": "delegated",
  "last_name": "admin 1",
  "email": "qa_test+admin1@treasure-data.com",
  "phone": null,
  "gravatar_url": "https://secure.gravatar.com/avatar/753a1124fbb84ca1a49a015c3b091411?size=80",
  "administrator": false,
  "created_at": "2020-03-17T03:04:29Z",
  "updated_at": "2023-12-13T07:45:19Z",
  "name": "delegated admin 1",
  "account_owner": false,
  "delegated_admin": true,
  "delegated_policy_groups": [
    "create_from_ui_by_admin1"
  ],
  "policy_group_tags": [
    "Germany",
    "NEXT",
    "PG-1",
    "create_from_ui_by_admin1"
  ]
}