Reset password for a user in this organization
const url = 'http://localhost:3000/api/v1/organizations/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/users/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/reset-password';const options = { method: 'POST', headers: {'X-API-Key': '<X-API-Key>', 'Content-Type': 'application/json'}, body: '{"password":"example","sendEmail":true,"reason":"example"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url http://localhost:3000/api/v1/organizations/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/users/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/reset-password \ --header 'Content-Type: application/json' \ --header 'X-API-Key: <X-API-Key>' \ --data '{ "password": "example", "sendEmail": true, "reason": "example" }'Triggers a password reset for a user that is a member of this organization. Allowed for tenant admins (USERS_WRITE) and superadmins. The target user receives a Keycloak UPDATE_PASSWORD email and is required to change their password on next login. Refuses self-reset (use the profile security page instead) and reset for inactive users.
Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ”Organization UUID
User UUID
Request Body required
Section titled “Request Body required ”object
New password (if not provided, a random password will be generated)
Send reset email notification to user
Reason for resetting the password
Responses
Section titled “ Responses ”Password reset triggered
object
Whether the password reset itself succeeded
Temporary password (only included if generated)
User must change password on next login
Whether a reset email was actually sent. False when the user has no linked Keycloak account, Keycloak sync is disabled, or the send failed (FM-602 S2).
Why the email was not sent, when emailSent is false (e.g. ‘no-keycloak-account’, ‘keycloak-sync-disabled’, ‘keycloak-send-failed’).
Example generated
{ "success": true, "temporaryPassword": "example", "mustChangePassword": true, "emailSent": true, "emailError": "example"}Self-reset attempted or user is not active
Unauthorized
Forbidden — caller lacks USERS_WRITE in this org
User is not a member of this organization