# Update database user access
This endpoint adds, updates, or removes the access of a given user to a given database.
Method | Path | Operation* |
---|---|---|
PATCH | account/services/databases/{database}/access/users/{user} | update_database_user_access |
*
In order for a user to perform the "update_database_user_access" operation, the "update_database_user_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. |
{user} required | string | path | User UUID. |
timeseries optional* | list of strings, value is "read" , or empty list | body | Permissions of the user to Timeseries tables in the database. |
indexes optional* | list of strings, value is "read" , or empty list | body | Permissions of the user to Indexes tables in the database. |
customer_data optional* | list of strings, value is "write" , "read" , or empty list | body | 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. |
# Response
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?