Hello,
In our environment we have many Access Profiles following a naming scheme similar to XX: Outlook - Mail box [DIS].
When a user makes a request for one of those access profiles I want to start a workflow. So I use this filter for the trigger:
Hello @GiuseppeDe , you can use Access request submitted event trigger and then call a workflow. In the workflow you can use Exists operator to determine above regex exists in the trigger or not, If it exists then you can execute the workflow actions .
The first step in my workflow is the trigger Access Request Decision with the filter *$.requestedItemsStatus[?(@.name =~ /.Outlook - Mail box [DIS]/ && @.operation == “Add” && @.approvalInfo.[0].approvalDecision==“APPROVED”)].
If I understand your solution, the first step of the workflow should be the trigger Access Request Decision without any filter or just a simple filter like $.requestedItemsStatus[?(@.operation == “Add” && @.approvalInfo.[0].approvalDecision==“APPROVED”)], this way the workflow would practically act for any approved provisioning request.
Regarding the Verify Data Type operator I’m not sure how to use it, because the name of the access in the Access Request Decision is a sub entry of the element of the array and may be one of the following values: AA: Outlook - Mail box [DIS], CK: Outlook - Mail box [DIS], ZA: Outlook - Mail box [DIS], etc. Should a regular expression be used?