diff --git a/templates/group_created.json.j2 b/templates/group_created.json.j2 index 7e40905..8c8b07a 100644 --- a/templates/group_created.json.j2 +++ b/templates/group_created.json.j2 @@ -101,7 +101,7 @@ "taskReferenceName" : "delete_default_permission", "type" : "SIMPLE", "inputParameters" : { - "url" : "${init.input.keycloak_admin}/clients/${extract_client_id.output.result.client_id}/authz/resource-server/policy/{$.body[?(@.name == 'Default Permission')]..id}", + "url" : "${init.input.keycloak_admin}/clients/${extract_client_id.output.result.client_id}/authz/resource-server/policy/${get_default_policies.output.body[?(@.name == 'Default Permission')]..id}", "method" : "DELETE", "headers" : { "Authorization" : "Bearer ${authorize.output.body.access_token}", @@ -114,7 +114,7 @@ "taskReferenceName" : "delete_default_policy", "type" : "SIMPLE", "inputParameters" : { - "url" : "${init.input.keycloak_admin}/clients/${extract_client_id.output.result.client_id}/authz/resource-server/policy/{$.body[?(@.name == 'Default Policy')]..id}", + "url" : "${init.input.keycloak_admin}/clients/${extract_client_id.output.result.client_id}/authz/resource-server/policy/${get_default_policies.output.body[?(@.name == 'Default Policy')]..id}", "method" : "DELETE", "headers" : { "Authorization" : "Bearer ${authorize.output.body.access_token}",