# Get database access
This endpoint retrieves users that have access to the given database and their respective access permissions.
Method | Path | Operation* |
---|---|---|
GET | account/services/databases/{database}/access | get_database_access |
*
In order for a user to perform the "get_database_access" operation, the "get_database_access" permission must be included in the list of allowed actions in the statement of the user's role.
# Request
Parameter | Type | In | Description |
---|---|---|---|
{database} required | string | path | Database UUID or "default" for requests on default database. |
# Response
Attribute | Type | Description |
---|---|---|
users | dictionary | Dictionary containing users with their permissions: - key: User UUID. - value: User permissions |
# User permissions
Attribute | Type | Description |
---|---|---|
timeseries | list of strings, value is "read" , or empty list | Permissions of the user to Timeseries tables in the database. |
indexes | list of strings, value is "read" , or empty list | Permissions of the user to Indexes tables in the database. |
customer_data | list of strings, value is "write" , "read" , or empty list | Permissions of the user to the customer schema in the database. The customer schema allows users with the "write" permission to create their own tables in the database. |
Was this article helpful?