Skip to content

Attach

Request

This operation attaches a policy to a user.

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

Responses

OK

Bodyapplication/json
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 }