I need to map permissions for all SharePoint Online objects (Sites, Lists, List Items, Attachments, Files, Folders). It seems to be possible through the CSOM API, but haven't found anything similar in Microsoft Graph.
The following query successfully retrieves a requested item:
https://graph.microsoft.com/beta/sites/root/Lists/{List ID}/items/{item ID}/
But the following query doesn't return the permissions as I expected:
https://graph.microsoft.com/beta/sites/root/Lists/{List ID}/items/{item ID}/permissions
I received the following error:
{
"error": {
"code": "BadRequest",
"message": "Resource not found for the segment 'permissions'.",
"innerError": {
"request-id": "ab9f4cfe-f0e1-433b-9767-96d4b3e58c59",
"date": "2019-03-18T18:52:21"
}
}
}
The same error was received upon the following query as well:
https://graph.microsoft.com/beta/sites/root/Lists/{List ID}/permissions
A year ago very similar question was asked, and the answer was that it is not possible.
Is it possible now? If yes then what am I doing wrong?