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

Deleting built-in client roles? #849

Open
Tracked by #1178
akikoskinen opened this issue Mar 13, 2023 · 1 comment
Open
Tracked by #1178

Deleting built-in client roles? #849

akikoskinen opened this issue Mar 13, 2023 · 1 comment
Assignees

Comments

@akikoskinen
Copy link
Contributor

akikoskinen commented Mar 13, 2023

Problem Statement

If I understand the code in RoleImportService correctly, it seems that keycloak-config-cli never deletes client roles that are offered by default by Keycloak. That's probably generally good behavior. But now I have a situation where I should be able to delete a built-in client role.

Proposed Solution

Perhaps the current behavior could be maintained as it is. But how about offering a setting that could be used to bypass this, allowing also deleting built-in client roles?

Environment

  • keycloak-config-cli version: 5.5.0
@Motouom
Copy link
Collaborator

Motouom commented Oct 26, 2024

Hello @akikoskinen
While keycloak-config-cli may have restrictions on deleting built-in client roles for safety reasons, Keycloak itself does allow for the deletion of client roles, including built-in ones, directly through its Admin Console or REST API.
To delete a client role using the Admin Console:

  • Log in to the Keycloak Admin Console
  • Select the appropriate realm
  • Go to the "Clients" section
  • Select the client for which you want to delete a role
  • Click on the "Roles" tab
  • Find the role you wish to delete
  • Click on the "Delete" button next to the role

Also, you can enable remote state management and see if you be able to manage the clients and roles

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

No branches or pull requests

2 participants