Open nevlkv opened 11 months ago
I try to set group members
groups = { "group1" = { members = ["user1", "user2"], roles = ["realm-admin"] } }
locals { user_names = [ for id, v in data.keycloak_user.users : v.username ] } data "keycloak_user" "users" { for_each = toset(var.members) realm_id = var.realm_id username = each.key } resource "keycloak_group_memberships" "group_members" { count = length(var.members) == 0 ? 0 : 1 realm_id = var.realm_id group_id = keycloak_group.group.id members = local.user_names }
if one of users in group1 blocked in ldap creating data instance brakes. Need safe mode with empty result
ex:
data "keycloak_user" "users" { filter { username = "any_name" } }
I try to set group members
vars
user 1 and user 2 uids from ldap federation
if one of users in group1 blocked in ldap creating data instance brakes. Need safe mode with empty result