I am using a workflow to deprovision requested access profiles from terminated users, however am having a difficult time filtering the workflow to check if the $.getAccess.accessItems array returned in the “Get Access” Action is empty or not. In other words, if the array returned is empty meaning there is no access to deprovision, the workflow should end.
Is there a way to use the compare operator or any other operator to compare and check if the array returned by the “Get Access” action is empty or not?
There is! A recent update to Workflows JSONpath has brought support for many new JSONpath operators. In this case, you can use the length() operator in a Compare Numbers step to check for an empty list. Just replace the Value 1 JSONpath as follows: