Skip to main content

Update a user

PUT 

/api/update_user/:name

Updates the named user's display name, email, SSH key, and roles, and optionally sets a new password if one is provided.

Doubles as the self-service profile edit: any user may update their own display name, email, SSH key, and password without the 'Manage users' permission. Editing someone else's account, or changing role assignments at all - including one's own - requires it, since otherwise every user could grant themselves any permission.

Request

Responses

Successful Response