From c6c58656838ab433d250e9d75408b3ffbd4be149 Mon Sep 17 00:00:00 2001 From: Pierre Erraud Date: Tue, 8 Oct 2019 18:27:43 +0200 Subject: [PATCH] feat: add serviceAccountUserId even if service accounts are disabled --- provider/resource_keycloak_openid_client.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/provider/resource_keycloak_openid_client.go b/provider/resource_keycloak_openid_client.go index 4d07112cb..60d543f17 100644 --- a/provider/resource_keycloak_openid_client.go +++ b/provider/resource_keycloak_openid_client.go @@ -222,6 +222,8 @@ func setOpenidClientData(keycloakClient *keycloak.KeycloakClient, data *schema.R if client.ServiceAccountsEnabled { data.Set("service_account_user_id", serviceAccountUserId) + } else { + data.Set("service_account_user_id", "") } // access type