Hello @MyAzQuery ,
I believe this is possible via the API, but it is a two-step process, and I am not sure how this will affect the integration with ServiceNow.
First, you need to retrieve the list of pending assignment requests. This will return a large list of requests that are not only active but also expired, etc, Here is the request with filter for requests with PendingApproval status:
GET https://graph.microsoft.com/beta/roleManagement/directory/roleAssignmentScheduleRequests?$filter=status eq 'PendingApproval'
When you have your pending approval ID, you can then approve it with:
GET https://graph.microsoft.com/beta/roleManagement/directory/roleAssignmentApprovals/<approvalId>
PATCH https://graph.microsoft.com/beta/roleManagement/directory/roleAssignmentApprovals/<approvalId>/steps/<stepId>
{
"reviewResult": "Approve",
"justification": "<REASON>"
}
I hope this is good enough to start with. You can read more about the PIM API or approval process in this documentation:
https://learn.microsoft.com/en-us/azure/active-directory/privileged-identity-management/pim-apis
Please let me know if you have any additional questions and please click on Accept as an answer in case this was helpful.