organization

Update organization user

Update a user in the current organization.

Different PropelAuth methods are called depending on what's being updated:

  • Email changes require re-confirmation
  • Password changes take effect immediately
  • Profile fields (name, username, picture) are updated together
  • Role changes affect organization permissions

RLS: Filtered to current client, can update any user (ClientRLSDB).

patch/api/v1/org/users/{user_id}

Path parameters

user_idstring uuid required

Request body

emailstring nullable
first_namestring nullable
last_namestring nullable
passwordstring nullable
picture_urlstring nullable
role'Admin' | 'Developer' | 'Viewer'

Role of a user within a client organization.

usernamestring nullable

Response

Successful Response

client_idstring uuid required
created_atstring date-time required
emailstring required
email_confirmedboolean required
first_namestring nullable
idstring uuid required
last_namestring nullable
picture_urlstring nullable
propel_auth_created_atstring date-time nullable
propel_auth_last_active_atstring date-time nullable
role'Admin' | 'Developer' | 'Viewer' required

Role of a user within a client organization.

updated_atstring date-time required
usernamestring nullable

Changes