# Update a user in organization Updates the name, role, or password of a user in your organization. Only the fields listed in the request are changed. Requires the user management permission, which organization admins have by default. Integration-only users cannot be updated, and the last admin of the organization cannot be demoted to another role. Set generateTemporaryPassword to true to replace the user's password with a generated one. The response returns it in temporaryPassword, and the user must change it at their next sign-in. Endpoint: PATCH /users/{userId} Version: 26.22.0.4436 Security: Bearer ## Path parameters: - `userId` (string, required) Identifier of the user to update. ## Request fields (application/json): - `role` (string) New role of the user in the organization. Omit to leave the role unchanged. Enum: "Admin", "LimitedAdmin", "Credentialing", "LimitedCredentialing", "Reader", "LimitedReader" - `password` (string) New password for the user. Must be at least 15 characters and include an uppercase letter, a lowercase letter, a number, and a symbol. Omit to leave the password unchanged. Must be empty when generateTemporaryPassword is true. - `requirePasswordChange` (boolean) Whether the user must change their password at their next sign-in. Omit to leave unchanged. - `generateTemporaryPassword` (boolean) Set to true to replace the user's password with a generated temporary password, returned in the response. The user must change it at their next sign-in. - `firstName` (string) New first name of the user. Omit to leave unchanged. Example: "Jane" - `lastName` (string) New last name of the user. Omit to leave unchanged. ## Response 200 fields (application/json): - `id` (string) The unique identifier of this user. Example: "8f6d2c1a-4b7e-4e3a-9c55-2d1f0b6a7e91" - `email` (string) The email of this user. Example: "jane.doe@example.com" - `firstName` (string) The first name of this user. Example: "Jane" - `lastName` (string) The last name of this user. Example: "Doe" - `role` (string) The role of this user in the organization. Enum: "Admin", "LimitedAdmin", "Credentialing", "LimitedCredentialing", "Reader", "LimitedReader" - `requirePasswordChange` (boolean) Whether this user must change their password at next sign-in. - `temporaryPassword` (string) The generated temporary password. Only set when the request set generateTemporaryPassword to true, when creating or updating a user, and returned only once. It is not set when an existing account is added to the organization. ## Response 400 fields ## Response 401 fields ## Response 403 fields ## Response 404 fields ## Response 500 fields