n the Azure Portal, I can navigate to Identity Governance | Access Packages | Access Package and then create a direct assignment for a user. The Azure Portal allows me to specify whether or not approvals are applied to the assignment request.
[
](https://i.stack.imgur.com/GryfJ.png)
I can also create a direct assignment request using the Microsoft Graph, but I cannot figure out how to apply approvals to this request. Requests from the Graph seem to always bypass the approval policy.
Using Fiddler and the Azure Portal (ref screenshot above), I can see that the following JSON payload is POST to the Graph. So I took that exact same JSON payload and POST it with the Graph Explorer, but the approval process is still being bypassed.
How can I achieve the same behavior as the Azure Portal (i.e., direct access package assignment with approval)?
{
"requestType": "userAdd",
"assignment": {
"targetId": "eb8c01b5-0133-47c6-bfe2-7b1ba6c180d5",
"assignmentPolicyId": "eb6a929c-e368-4d2f-ba48-2ddbe23671df",
"accessPackageId": "3e239fde-d9e6-4e28-92b4-4b1a990799ce"
},
"requestApprovalSettings": {
"isApprovalRequired": "true"
}
}