mayope / keycloakmigration

Manage your Keycloak configuration with code.
https://mayope.net
MIT License
114 stars 23 forks source link

Revoking client role from group does not work #78

Closed mfolnovic closed 3 months ago

mfolnovic commented 3 months ago

If I try to remove a client role from a group, I get an error:

[ERROR] 2024-07-08 15:48:08.736 [main] KeycloakMigration - Error occurred while migrating: clean-deprecated-roles 
de.klg71.keycloakmigration.changeControl.actions.MigrationException: Group with name: GROUP_A in realm: testRealm does not have role: DELETE_USER!
        at de.klg71.keycloakmigration.changeControl.actions.group.RevokeRoleFromGroupAction.execute(RevokeRoleFromGroupAction.kt:41) ~[keycloakmigration-0.2.56.RC3-fat.jar:?]
        at de.klg71.keycloakmigration.changeControl.actions.Action.executeIt(Action.kt:37) ~[keycloakmigration-0.2.56.RC3-fat.jar:?]
id: remove-deprecated-roles
author: mfolnovic
changes:
  - revokeRoleFromGroup:
      realm: testRealm
      role: DELETE_USER
      group: GROUP_A
      clientId: test-client
klg71 commented 3 months ago

Hey @mfolnovic thanks for taking the time ! :)

klg71 commented 3 months ago

Sry I closed it before I could actually do the release. Your change is in release 0.2.61. Could you verify it works?

mfolnovic commented 3 months ago

No problem, I've verified last release and it works!

Thank you very much for extremely fast release. :)