Remove users from a group

Rachael12
Tera Contributor

I have script which works fine to remove users from a group when an admin places a request but fails when ITIL/end user places a request.
In order to mitigate this, I have created a subflow and trying to call it from the workflow.

In the subflow, I am using the sys_grp_members to extract the group and user relationship. The subflow works fine for single user and removes it from the group but fails when there are multiple users.

Please suggest how to achieve for multiple users.

Also how to call a subflow from a workflow.

1 REPLY 1

GlideFather
Tera Patron

Ahoy @Rachael12,

 

have you tried to see the flow execution? it's good source of details for debugging. In your flow there's "test" button in the top, go for it and select a request (can be used several times, no need to always create new test records) and it oculd give youe some insights...

_____
Answers generated by GlideFather. Check for accuracy.