Thank you for posting this in Microsoft Q&A.
I understand that you are trying to Create AccessPackageAssignmentRequest graph API gives error "ArgumentNullException", "message": "Value cannot be null.\r\nParameter name: Grant".
I have tested in my environment and successfully created AccessPackageAssignmentRequest in graph explorer.
Request a package and provide a justification query (e. g:4) from this document Create accessPackageAssignmentRequest .Please let us know if you would like to run additional examples.
- In Graph Explorer, select "POST" from the Method dropdown.
- In the "Request URL" field, enter the following URL:
https://graph.microsoft.com/v1.0/identityGovernance/entitlementManagement/assignmentRequests
3.In the "Headers" section, add a "Content-type" header with the value "application/json".
4.In the "Request body" section, enter the following JSON payload:
{
"requestType": "UserAdd",
"accessPackageAssignment": {
"accessPackageId": "43797452-3ab6-411c-a833-c5aedb0530d9"
},
"justification": "Need access to New Hire access package"
}
Hope this helps. Do let us know if you any further queries.
Thanks,
Navya.
If this answers your query, do click Accept Answer
and Yes
for was this answer helpful. And, if you have any further query do let us know.