1 line
6.7 KiB
JSON
1 line
6.7 KiB
JSON
{"blocks":[{"id":"8CAE19B4-A056-4A88-9944-866282211125","type":"StartBlock","disabled":false,"name":"UserCreated","displayName":"User Created","comment":"","childId":"2292CD0A-90B9-4D42-8E22-647A097173AC","inputs":[{"id":"run_mode","value":"webhook","type":"select","structure":{}},{"id":"datasourcetype_guid","value":"61a87510-c7a3-11ea-95da-0fb0c241e75c","type":"select","displayValue":"Qlik Cloud Services","structure":[]},{"id":"webhook_event_guid","value":"5be4c220-6156-11eb-a3df-fdbac6cc38a0","type":"select","displayValue":"User Created","structure":[]},{"id":"test_payload","value":"{\n \"data\": {\n \"id\": \"example_4Py5kq5i3OhUWAfBauEyPd423eSNJF8X\",\n \"subject\": \"example_auth0|f6b3fd7b7a3f625904134b89379372375300cff2dafc31a65a17cc093bb690b2\",\n \"tenantId\": \"example_WL69WlNT4PRbwAA8EZ1sDblqjthluHL1\"\n },\n \"source\": \"com.qlik/users\",\n \"eventId\": \"example_CGMoX8zP3RaPcGLKxQ_Sy5N4O0bh9XxE\",\n \"eventTime\": \"2021-09-09T09:32:53.782Z\",\n \"eventType\": \"com.qlik.v1.user.created\",\n \"extensions\": {\n \"userId\": \"example_BlVarUAUM9I0ei3MmKMejlDaF1sKPnN5\",\n \"tenantId\": \"example_WL69WlNT4PRbwAA8EZ1sDblqjthluHL1\"\n },\n \"contentType\": \"application/json\",\n \"eventTypeVersion\": \"1.0.0\",\n \"cloudEventsVersion\": \"0.1\"\n}","type":"json","structure":[]},{"id":"webhook_documentation","value":null,"type":"string","structure":{}}],"settings":[{"id":"automations_censor_data","value":false,"type":"checkbox","structure":{}}],"collapsed":[{"name":"loop","isCollapsed":false}],"x":0,"y":0,"logo":"https://cdn.qlikcloud.com/automations/logos/21dd4ad9985d490e7bfd7a644d783489.png"},{"id":"A148B742-AC60-4657-AC2B-B7A736E932F4","type":"EndpointBlock","disabled":false,"name":"listRoles","displayName":"Qlik Platform Operations - List Roles","comment":"","childId":"0886762C-9436-4E2A-A209-82CBF6AC0080","inputs":[{"id":"bae46270-b76f-11ed-a52b-d71383a5b940","value":"{$.GetTenantNameAndRegion}","type":"string","structure":[]},{"id":"35bbb150-b77a-11ed-9a99-9b0cd6b2a9ab","value":"name eq \"DataServicesContributor\" or name eq \"SharedSpaceCreator\"","type":"string","structure":[]}],"settings":[{"id":"datasource","value":null,"type":"select","structure":[]},{"id":"maxitemcount","value":"","type":"string","structure":[]},{"id":"blendr_on_error","value":"stop","type":"select","structure":[]},{"id":"cache","value":"0","type":"select","structure":[]},{"id":"automations_censor_data","value":false,"type":"checkbox","structure":[]}],"collapsed":[{"name":"loop","isCollapsed":false}],"x":-302,"y":440,"datasourcetype_guid":"c7e48240-e0f2-11ec-ada1-d5ef75014b77","endpoint_guid":"ba493570-b76f-11ed-b6ab-6fd465c15105","endpoint_role":"list"},{"id":"8FB90411-96FF-442B-9505-E07BA26C13BC","type":"SnippetBlock","disabled":false,"name":"GetTenantNameAndRegion","displayName":"Qlik Platform Operations - Get Tenant Name And Region","comment":"","childId":"A148B742-AC60-4657-AC2B-B7A736E932F4","inputs":[{"id":"575d1740-b1e2-11ed-958a-598edfec33b8","value":"{$.getCurrentTenantInfo.hostnames[1]}","type":"string","structure":[]}],"settings":[{"id":"datasource","value":null,"type":"select","structure":[]},{"id":"blendr_on_error","value":"stop","type":"select","structure":[]},{"id":"automations_censor_data","value":false,"type":"checkbox","structure":[]}],"collapsed":[{"name":"loop","isCollapsed":false}],"x":-306,"y":201,"datasourcetype_guid":"c7e48240-e0f2-11ec-ada1-d5ef75014b77","snippet_guid":"bd5c1ce0-ad14-11ed-83f6-1d42e53790dd"},{"id":"1BBF000F-1222-4C8E-83B8-E50D3CEE22F8","type":"EndpointBlock","disabled":false,"name":"getCurrentTenantInfo","displayName":"Qlik Cloud Services - Get Current Tenant Info","comment":"","childId":"8FB90411-96FF-442B-9505-E07BA26C13BC","inputs":[],"settings":[{"id":"blendr_on_error","value":"stop","type":"select","structure":[]},{"id":"cache","value":"0","type":"select","structure":[]},{"id":"automations_censor_data","value":false,"type":"checkbox","structure":[]}],"collapsed":[{"name":"loop","isCollapsed":false}],"x":-286,"y":88,"datasourcetype_guid":"61a87510-c7a3-11ea-95da-0fb0c241e75c","endpoint_guid":"55051480-cb86-11ec-b746-892c1d04114e","endpoint_role":"get"},{"id":"0886762C-9436-4E2A-A209-82CBF6AC0080","type":"EndpointBlock","disabled":false,"name":"updateUser","displayName":"Qlik Platform Operations - Update User","comment":"","childId":null,"inputs":[{"id":"1275cc40-7d52-11ed-97f5-35480c4d133a","value":"{$.GetTenantNameAndRegion}","type":"string","structure":[]},{"id":"12813fb0-7d52-11ed-b2ac-cfed8b1c48f2","value":"{$.getUser.id}","type":"string","structure":[]},{"id":"55364350-7d52-11ed-889a-fb5bd7462102","value":null,"type":"string","structure":[]},{"id":"97589920-ceec-11ed-aede-33df8d01bc94","value":"[ { \"id\":\"{$.listRoles[0].id}\" }, {\"id\":\"{$.listRoles[1].id}\"} ]","type":"string","structure":[]},{"id":"ae9800c0-ceec-11ed-bf0f-0510a2f5834b","value":null,"type":"string","structure":[]},{"id":"b440c910-ceec-11ed-b95b-c57e4f78d383","value":null,"type":"string","structure":[]},{"id":"b9f384a0-ceec-11ed-bd06-5f56dda1d03f","value":null,"type":"string","structure":[]},{"id":"bfb49fc0-ceec-11ed-9d75-f9d68f3e98a8","value":null,"type":"string","structure":[]}],"settings":[{"id":"datasource","value":null,"type":"select","structure":[]},{"id":"blendr_on_error","value":"stop","type":"select","structure":[]},{"id":"automations_censor_data","value":false,"type":"checkbox","structure":[]}],"collapsed":[{"name":"loop","isCollapsed":false}],"x":-302,"y":78,"datasourcetype_guid":"c7e48240-e0f2-11ec-ada1-d5ef75014b77","endpoint_guid":"12491ca0-7d52-11ed-b5ad-e771eed0ab44","endpoint_role":"update"},{"id":"2292CD0A-90B9-4D42-8E22-647A097173AC","type":"EndpointBlock","disabled":false,"name":"getUser","displayName":"Qlik Cloud Services - Get User","comment":"","childId":"4DA4FF1A-78F5-44AE-B7CD-E187B4230C7B","inputs":[{"id":"8eedf1d0-c7a5-11ea-9022-0fb2ce625902","value":"{$.UserCreated.data.id}","type":"string","structure":[]}],"settings":[{"id":"blendr_on_error","value":"stop","type":"select","structure":[]},{"id":"cache","value":"0","type":"select","structure":[]},{"id":"automations_censor_data","value":false,"type":"checkbox","structure":[]}],"collapsed":[{"name":"loop","isCollapsed":false}],"x":510,"y":-26,"datasourcetype_guid":"61a87510-c7a3-11ea-95da-0fb0c241e75c","endpoint_guid":"7e670290-c7a5-11ea-9a9c-6dd2b282df86","endpoint_role":"get"},{"id":"4DA4FF1A-78F5-44AE-B7CD-E187B4230C7B","type":"UpdateJobBlock","disabled":false,"name":"updateRunTitle","displayName":"Update Run Title","comment":"","childId":"1BBF000F-1222-4C8E-83B8-E50D3CEE22F8","inputs":[{"id":"title","value":"{$.getUser.email}","type":"string","structure":[]}],"settings":[{"id":"automations_censor_data","value":false,"type":"checkbox","structure":[]}],"collapsed":[{"name":"loop","isCollapsed":false}],"x":-298,"y":216}],"variables":[]} |