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" {
|
data "keycloak_realm" "realm" {
|
||||||
realm = var.realm
|
realm = var.realm
|
||||||
}
|
}
|
||||||
|
|
||||||
|
data "keycloak_role" "default_role" {
|
||||||
|
realm_id = data.keycloak_realm.realm.id
|
||||||
|
name = "default-roles-tobiasmanske.de"
|
||||||
|
}
|
||||||
|
@ -22,10 +22,11 @@ resource "keycloak_user_groups" "rad4day_groups" {
|
|||||||
|
|
||||||
|
|
||||||
resource "keycloak_user_roles" "rad4day_roles" {
|
resource "keycloak_user_roles" "rad4day_roles" {
|
||||||
realm_id = data.keycloak_realm.realm.id
|
realm_id = data.keycloak_realm.realm.id
|
||||||
user_id = data.keycloak_user.rad4day.id
|
user_id = data.keycloak_user.rad4day.id
|
||||||
|
|
||||||
role_ids = [
|
role_ids = [
|
||||||
|
data.keycloak_role.default_role.id,
|
||||||
keycloak_role.minio-consoleAdmin.id,
|
keycloak_role.minio-consoleAdmin.id,
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user