DatabaseUserInput
DatabaseUserInput object- no other properties
namestring optionalOnly when adding; a user keeps its name
accessstring requiredAllowed values:"read""readwrite""custom"privilegesarray<string> optionalOnly with custom. PostgreSQL cannot grant alter, drop or index to a user that does not own the database.
Allowed values:"select""insert""update""delete""create""alter""drop""index""execute""create_view""trigger""references"hostsarray<string> optionalIPv4 addresses or networks (no wider than /16) the user may connect from; empty means this server only (ADR 0067)
- max items 20
Used by
| POST | /api/v1/tenants/{tid}/databases/{id}/users | Add a user with read-only, read-write or chosen privileges; the password is shown once |
| PUT | /api/v1/tenants/{tid}/databases/{id}/users/{uid} | Change a user's privileges and the networks it may connect from; its password stays |