From 27518cfbdc6a04e4774c6d6b213f01b48730d084 Mon Sep 17 00:00:00 2001 From: "m.lettere" Date: Thu, 1 Jul 2021 10:37:06 +0200 Subject: [PATCH] retrieve system_services' useraccounts from KC --- templates/add_all_system_services_to_vre.json.j2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/add_all_system_services_to_vre.json.j2 b/templates/add_all_system_services_to_vre.json.j2 index 534a549..f3f2d5a 100644 --- a/templates/add_all_system_services_to_vre.json.j2 +++ b/templates/add_all_system_services_to_vre.json.j2 @@ -136,7 +136,7 @@ "type": "LAMBDA", "inputParameters": { "url" : "${${init.input.keycloak_admin}/clients", - "services" : "${join_parallel_build_member_roles_assignment_tasks.output.body..body.*.id}", + "services" : "${join_parallel_build_member_roles_assignment_tasks.output..body.*.id}", "scriptExpression": "inputs = {}, tasks = [];for (var i = 0; i < $.services.length; i++){s = $.services[i].id;tasks.push({name: 'pyrest',type: 'SIMPLE',taskReferenceName: 'get_system_service_useraccount' + i});inputs['get_system_service_useraccount' + i] = {url: $.url + '/' + s + '/service-account-user',method: 'GET',headers: {Authorization: 'Bearer ${authorize.output.body.access_token}', Accept: 'application/json'}}};return {tasks: Java.to(tasks, 'java.util.Map[]'),inputs: inputs};" } },