checking if a user is in an AD group - orchestration

subhyde
Giga Contributor

I am trying to check if a user is already present in a group in AD, I figured the easiest way may be to parse the data from the failure message from the orchestration task "add user to ad" stating that the user is already in the group.

 

If this task fails it will create a ticket for service desk to do it manually, when there is multiple groups, I’d like to skip over the group in case the user is already in it.

 

Is there any way to get the data from the previous orchestration task and check the data in an if statement?