-
Notifications
You must be signed in to change notification settings - Fork 147
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
Changing a username while keeping the email unchanged leads to 409 conflict #662
Comments
Deleting users is currently not implemented in keycloak-config-cli, only create and update. Thats why keycloak-config-cli will not delete the old user and the new user has a conflict with the existing user. |
I understand, thanks for the quick reply! Happy to provide a PR if you point me in the right direction. |
For deleting users, a remote state needs to be implement. Otherwise, Keycloak-config-cli is going to delete all users which is a major incident. More informations here: https://github.com/adorsys/keycloak-config-cli/blob/main/docs/MANAGED.md Take a look, how Realm Roles are handled on deletion. keycloak-config-cli/src/main/java/de/adorsys/keycloak/config/service/RoleImportService.java Lines 243 to 269 in 1a22b22
|
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days. |
Is there any plan to add the remote state feature? |
Hi @testuser7 (what a name ;-) ), I haven't looked into it so far! |
Hi @testuser7 this also closes ticket #810 since the username needs to be uniquely identified, |
After testing, I observed that Keycloak uses the
Recommendation:
|
hi @tobilarscheid and @Calebasah, This ticket has been resolved following the implementation of the |
Current Behavior
keycloak-config-cli
to apply the realm.yamlkeycloak-config-cli
--> error, 409 ConflictExpected Behavior
A new user with the new name should be created, the old user should disappear
Steps To Reproduce
No response
Environment
Anything else?
No response
The text was updated successfully, but these errors were encountered: