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

Added support to add client role on service account user #208

Closed
wants to merge 1 commit into from

Conversation

zikphil
Copy link

@zikphil zikphil commented Jan 29, 2020

This is a gross copy/paste of PR #202 but to also add the capability of adding Client Role to Client Service Account.

Example Use-Case: Grant realm-management roles on another client's service account.

Apologies for the dirtyness of code, this is my first Go coding experience.

resource "keycloak_openid_client_service_account_client_role" "client_service_account_roles" {
  realm_id = keycloak_realm.test-realm.id
  client_id  = data.keycloak_openid_client.realm_management.id
  service_account_user_id  = keycloak_openid_client.test_client.service_account_user_id
  role = "manage-realm"
}

@waldemarschmalz
Copy link
Contributor

waldemarschmalz commented Jan 30, 2020

It is already possible to add client roles to a service account user. See example/main.tf :-)

@zikphil
Copy link
Author

zikphil commented Jan 31, 2020

Omg you are absolutely right

@zikphil zikphil closed this Jan 31, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants