Keep default roles for users with additional roles
This commit is contained in:
parent
2a0a82e484
commit
049e2d339b
@ -25,3 +25,8 @@ terraform {
|
||||
data "keycloak_realm" "realm" {
|
||||
realm = var.realm
|
||||
}
|
||||
|
||||
data "keycloak_role" "default_role" {
|
||||
realm_id = data.keycloak_realm.realm.id
|
||||
name = "default-roles-tobiasmanske.de"
|
||||
}
|
||||
|
@ -26,6 +26,7 @@ resource "keycloak_user_roles" "rad4day_roles" {
|
||||
user_id = data.keycloak_user.rad4day.id
|
||||
|
||||
role_ids = [
|
||||
data.keycloak_role.default_role.id,
|
||||
keycloak_role.minio-consoleAdmin.id,
|
||||
]
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user