Retrieves the sub users the calling user may manage: every sub user in the account for an administrator, only the caller's own sub users otherwise. Sub users themselves are refused entirely.
Security
ApiKeyAuth
narrows the listing to the sub users of one owner. It can only narrow: what the caller may see is decided first, so a non-administrator naming another user gets an empty list rather than a wider one. The parameter is deliberately not called user_id, which means the sub user's own id here; note that this differs from GET /v4/api_keys, where user_id names the owner
Example:parent_user_id=123
- https://api.treasuredata.com/v3https://api.treasuredata.com/v3/sub_user/list
- https://api.treasuredata.co.jp/v3https://api.treasuredata.co.jp/v3/sub_user/list
- https://api.ap02.treasuredata.com/v3https://api.ap02.treasuredata.com/v3/sub_user/list
- https://api.eu01.treasuredata.com/v3https://api.eu01.treasuredata.com/v3/sub_user/list
curl -i -X GET \
'https://api.treasuredata.com/v3/sub_user/list?parent_user_id=123' \
-H 'Authorization: TD1 <YOUR_TOKEN_HERE>'Response
- object or null
- Sub User Parent Reference
{ "sub_users": [ { … } ] }