API referenceSections

DatabaseUserInput

DatabaseUserInput object
  • no other properties
  • name string optional

    Only when adding; a user keeps its name

  • access string required
    Allowed values: "read" "readwrite" "custom"
  • privileges array<string> optional

    Only 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"
  • hosts array<string> optional

    IPv4 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}/usersAdd 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