Skip to content

Updating user attibutes of an existing user fails, if the user has no attributes set. #1278

@davidseidel

Description

@davidseidel

Current Behavior

If a existing user has no attributes, it is not possible to add attributes to it.

Expected Behavior

Updating of attributes existing user, which has no attributes set, should work.

Steps To Reproduce

1. Create a user without attributes.
2. Update user attributes (adding one or more attributes)
3. No attributes are set to the user.

Environment

  • Keycloak Version: 26.1.0 (also verified with Keycloak 26.0.8)
  • keycloak-config-cli Version: 6.3.0
  • Java Version: Java 21

Anything else?

I have found out, that the Problem is located at the UserImportService. I fixed it and I will contribute the fix.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    Status

    Review

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions