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