POST https://graph.microsoft.com/v1.0/drives/{driveId}/items/{itemId}/invite
Request Body:
{
"recipients":[{"email":"[email protected]"}],
"message":"",
"requireSignIn":true,
"sendInvitation":false,
"roles":["write"]
}
Response Body:
{
"@odata.context":"https://graph.microsoft.com/v1.0/$metadata#Collection(permission)",
"value":[{
"@odata.type":"#microsoft.graph.permission",
"grantedTo":{"user":{"displayName":"[email protected]"}},
"id":"<PERMISSION_ID>",
"roles":["write"]
}]
}
I'm getting proper response with 200 ("OK") status code. But I'm not able to access the sharepoint folder with "[email protected]" account. Also when I'm checking the permissions on the folder in the sharepoint, the "[email protected]" id is not listed in manage access list.