I am trying to create a workflow which will trigger when user changes department and should remove user’s access where the access profile name contains “Privileged access”
Search query being used to get access profiles with required keyword is “Privileged access”
I suspect this error could be there because user is not having all the access profiles which are being returned by get access method. Could you please suggest how this can be resolved?
How are you filtering out the AP’s with “privilege access” name? Are you filtering them in manage access step? If possible, could you post the workflow JSON here?
No, These access profiles are not part of a role. In current situation user is having 2 out of 3 access profiles which have "Privileged access” in their name.
Can you try this approach - using Get Access and loop
. Configure Get Identity immediately after trigger and get the identity from the trigger. Get Access action to get only access profiles. Perform loop over get access action’s access items (loop input - $.getAccess.accessItems). Within the loop, include Compare Strings(value 1-$.loop.loopInput.name) with contains “Privileged access”, if true perform Manage Access to remove the access
In that case try this, after Get Identity, setup HTTp request action to invoke v3-search api as request url. In the request body have something like below. Loop over the body response access profile name and within the loop perform Manage Access
Request Body
Thanks for your help, This http request action helped in fetching the list of access profiles owned by user so I didn’t have to use a loop for removing access.