Skip to content

get User Policies

Request

Retrieves a list of policies by user.

Security
ApiKeyAuth
Path
user_idinteger(UserId)required
Example:123
curl -i -X GET \
  https://api.treasuredata.com/v3/access_control/users/123/policies \
  -H 'Authorization: TD1 <YOUR_TOKEN_HERE>'

Responses

OK

Bodyapplication/json
Array [
idinteger(AccessControlPolicyId)required
Example:67
account_idinteger(AccountId)required
Example:123
namestringrequired

Policy's name

Example:"some_policy"
descriptionstring

Policy's description

Example:"written about the policy"
user_countinteger

The number of users which the policy attaches to

Example:3
]
Response
[ { "id": 67, "account_id": 123, "name": "some_policy", "description": "written about the policy", "user_count": 3 } ]