Update Database User
http
PUT /cranebase/services/{serviceId}/users/{username}
{username} is the full name. Changes only the fields given; the rest keep their current values. New permissions apply to every database the user has. Users canβt be renamed. 404 when thereβs no such user.
Parameters
| Field | Type | Required | Description |
|---|---|---|---|
| password | string | No | New password (min 8 chars) |
| permissions | array | No | New privileges (see Create Database User) |
| webadmin | boolean | No | Allow phpMyAdmin sign-in |
| active | boolean | No | false locks the user, true unlocks it |
Response
json
{ "message": "User updated." }