Repository navigation
Description
Enhancement Description
The SCIM /Users endpoint has no password attribute, and the Service Provider Configuration reports changePassword as not supported. A provisioning client (an upstream identity provider, HR system or migration tool) cannot set the password of the users it provisions, and needs a second, non-standard channel (the Admin REST API) for it.
Add the password attribute of the core User schema (RFC 7643, Section 4.1.1) to the SCIM User resource.
Value Proposition
Provisioning clients can create users with a working credential and rotate it through the standard SCIM API, without extra Admin REST API calls and extra permissions. SCIM clients that expect changePassword (RFC 7643, Section 5) work with Keycloak.
Goals
As outlined by @sguilhen in the discussion:
passwordin the core User schema,mutability: writeOnly,returned: never, supported on create (POST), full replace (PUT) andPATCH.- Mapped to the password credential the same way as the reset password endpoint of the Admin REST API:
UserCredentialModel.password(...), an unconditional overwrite, the current password is not required. - Password policy violations are returned as
400withscimType: invalidValueinstead of a generic failure. - The value is never echoed in a response, also not with
attributes=password. changePassword.supportedistruein the Service Provider Configuration.- Tests for create, replace, patch, a policy violation, and that the password is never returned.
Non-Goals
- Other credential types (OTP, WebAuthn); the SCIM core schema has no concept of them.
- Temporary passwords: SCIM has no equivalent of the
UPDATE_PASSWORDrequired action, so a password set through SCIM is permanent. This is documented as a known limitation. - Self-service password change with verification of the current password.
Discussion
Notes
Related to the SCIM enhancements milestone #50512.
Metadata
Metadata
Assignees
Labels
Type
Fields
Value
Effort
Votes
Projects
- StatusShow more project fieldsOpen
Activity
Require reset-password for SCIM passwords and reject their removal