Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for partial update of users #910

Open
jirutka opened this issue Aug 10, 2023 · 4 comments
Open

Add support for partial update of users #910

jirutka opened this issue Aug 10, 2023 · 4 comments
Assignees

Comments

@jirutka
Copy link

jirutka commented Aug 10, 2023

Problem Statement

I’m using User Federation (LDAP), so I don’t wanna update the user name, email etc., but I’d like to manage realm roles and client roles via keycloak-config-cli.

Proposed Solution

Make IGNORED_PROPERTIES_FOR_UPDATE configurable via CLI option. Or better, add an inverse option to specify the properties that should be updated.

Environment

No response

Additional information

No response

Acceptance Criteria

No response

@jonasvoelcker
Copy link
Collaborator

Hi @jirutka, I guess this would not be that easy because keycloak only has a PUT-route for users so you need to load every detail of that user to make changes about them. If there is some interaction and the user changes an attribute, that information would be lost afterwards.

@Motouom
Copy link
Collaborator

Motouom commented Nov 29, 2024

Problem Statement

I’m using User Federation (LDAP), so I don’t wanna update the user name, email etc., but I’d like to manage realm roles and client roles via keycloak-config-cli.

Proposed Solution

Make IGNORED_PROPERTIES_FOR_UPDATE configurable via CLI option. Or better, add an inverse option to specify the properties that should be updated.

Environment

No response

Additional information

No response

Acceptance Criteria

No response

Hi @jirutka, in light of @jonasvoelcker's observation, it appears that there may be an issue with modifying realm and client roles without loading the complete configuration for kccli to accurately identify those properties. Have you come across a workaround for this?

@Motouom Motouom self-assigned this Nov 29, 2024
@Motouom Motouom moved this from Todo to In Progress in os-competence-center-board Nov 29, 2024
@Motouom Motouom moved this from In Progress to Review in os-competence-center-board Dec 2, 2024
@AssahBismarkabah AssahBismarkabah moved this from Review to Awaiting Feedback in os-competence-center-board Dec 3, 2024
@Motouom
Copy link
Collaborator

Motouom commented Dec 17, 2024

Hi @jirutka

Are you still interested in this feature? As keycloak does not offer PATCH, we might think of loading the user, modifying the user, and using PUT to upgrade the user.

@jirutka
Copy link
Author

jirutka commented Dec 17, 2024

Yes, I’m still interested.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Awaiting Feedback
Development

No branches or pull requests

3 participants