Is to possible to cancel all pending access requests of the user via a workflow?
Use case:
When the user lifecycle state is changed to inactive (e.g leaver)
Workflow makes HTTP request to IDN to retrieve all pending access requests of the triggered identity
Using a loop, another HTTP request to IDN to cancel their pending requests
First, using this API call to find the access request status of the triggered identity list-access-request-status | SailPoint Developer Community but I am not sure what would be the possible values for RequestedItemStatusRequestState.
You can use Pending Access Requests beta API with filter requestedFor.id eq ID_FROM_TRIGGER and iterate through the array using loop where you can send a HTTP request to cancel the access request.