Change a database user's access
set_database_user_accessSets the logical databases a user connects to (databases: a list, or null for all of them, future ones included) and whether it only reads; a field left out keeps its value. Applied within seconds; where its access is removed or lowered, its open connections are closed, so tell the user first if an application uses it. Not on the admin (it always has every database) nor on Valkey. Scope: databases.write.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| database | Yes | Database id, as returned by list_databases or create_database. | |
| username | Yes | Lowercase letters, digits and _, starting with a letter or _. | |
| databases | No | Logical databases it may connect to; null for all of them, future ones included. | |
| read_only | No |