FFFF Support the password attribute in the SCIM User resource · Issue #55680 · keycloak/keycloak · GitHub
[go: up one dir, main page]

Skip to content

Support the password attribute in the SCIM User resource #55680

Description

@costa-chown

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:

  • password in the core User schema, mutability: writeOnly, returned: never, supported on create (POST), full replace (PUT) and PATCH.
  • 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 400 with scimType: invalidValue instead of a generic failure.
  • The value is never echoed in a response, also not with attributes=password.
  • changePassword.supported is true in 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_PASSWORD required 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

#52957

Notes

Related to the SCIM enhancements milestone #50512.

Activity

  1. added a commit that references this issue on Dec 1, 2026
    582d31b
  2. added
    kind/enhancement
    on Dec 4, 2026
  3. added
    area/scim
    on Dec 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/scimkind/enhancementteam/core-iam

    Fields

    Value

    None yet

    Effort

    None yet

    Votes

    None yet

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    0