...
- Create a program to execute the query below, which includes the form fields, policy groups (aka application permissions), and the workflow steps
- Inputs
- groupName
- Logic
- lookup the groupId based on the groupName
- lookup all the application ids in the system
- loop through each application id
- query
use below sample to view the json in https://hawaii.kualibuild.com/app/api/v0/graphiql
Code Block query { app (id:"5e9658e0fad1f3001e4016d3") { name listPolicyGroups { name identities { type label displayName } } workflow } }
- search for the groupName in the response
- matches will come against the listPolicyGroups ojbect under identities where type=GROUP and label=groupName
- matches will come against the assignee.value.group.label object; part of the group object is the group id
- query
- Outputs
- list of applications referencing the group
- application name
- permissions policy group (null if no references)
- workflow's step name (null if no references)
- list of applications referencing the group
- Inputs