Access Control - Users

List

Retrieves a list of users and their permissions.

Request
Security:
ApiKeyAuth
Responses
200

OK

get/access_control/users
Request samples
curl -i -X GET \
  https://api.treasuredata.com/v3/access_control/users \
  -H 'Authorization: TD1 <YOUR_TOKEN_HERE>'
Response samples
application/json
[
  • {
    }
]

Get Access Control User

Retrieves the specified user.

Request
Security:
ApiKeyAuth
path Parameters
user_id
required
integer (UserId)
Example: 123
Responses
200

OK

get/access_control/users/{user_id}
Request samples
curl -i -X GET \
  'https://api.treasuredata.com/v3/access_control/users/{user_id}' \
  -H 'Authorization: TD1 <YOUR_TOKEN_HERE>'
Response samples
application/json
{
  • "user_id": 123,
  • "account_id": 123,
  • "permissions": {
    },
  • "policies": [
    ]
}

Update Access Control User Permissions

Updates a user's permissions.

Request
Security:
ApiKeyAuth
path Parameters
user_id
required
integer (UserId)
Example: 123
Request Body schema: application/json
Array of objects

Permissions on resource

Array of objects

Permissions on resource

Array of objects

Permissions on resource

Array of objects

Permissions on resource

Array of objects

Permissions on resource

Array of objects

Permissions on deatabases

Responses
200

OK

patch/access_control/users/{user_id}/permissions
Request samples
application/json
{
  • "WorkflowProject": [
    ],
  • "WorkflowProjectLevel": [
    ],
  • "Authentications": [
    ],
  • "Sources": [
    ],
  • "Destinations": [
    ],
  • "Databases": [
    ]
}
Response samples
application/json
{
  • "user_id": 123,
  • "permissions": {
    }
}

List

Retrieves a list of users attached to a policy.

Request
Security:
ApiKeyAuth
path Parameters
policy_id
required
integer (AccessControlPolicyId)
Example: 67
Responses
200

OK

get/access_control/policies/{policy_id}/users
Request samples
curl -i -X GET \
  'https://api.treasuredata.com/v3/access_control/policies/{policy_id}/users' \
  -H 'Authorization: TD1 <YOUR_TOKEN_HERE>'
Response samples
application/json
[
  • {
    }
]

Update Policy Users

Updates users attached to a policy.

Request
Security:
ApiKeyAuth
path Parameters
policy_id
required
integer (AccessControlPolicyId)
Example: 67
Request Body schema: application/json
user_ids
required
Array of integers (UserId)
Responses
200

OK

patch/access_control/policies/{policy_id}/users
Request samples
application/json
{
  • "user_ids": [
    ]
}
Response samples
application/json
[
  • {
    }
]
Support
Copyright © 2021 Treasure Data, Inc. (or its affiliates). All rights reserved.