retrieve system_services' useraccounts from KC

This commit is contained in:
Marco Lettere 2021-07-01 10:27:33 +02:00
parent 66d6881eed
commit 586bbc0234
1 changed files with 1 additions and 1 deletions

View File

@ -137,7 +137,7 @@
"inputParameters": {
"url" : "${${init.input.keycloak_admin}/clients",
"services" : "${join_parallel_build_member_roles_assignment_tasks.output.body}",
"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};"
"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};"
}
},
{