我需要映射所有 SharePoint Online 对象(网站、列表、列表项、附件、文件、文件夹)的权限。这似乎可以通过 CSOM API 实现,但在 Microsoft Graph 中没有找到类似的东西。
以下查询成功检索请求的项目:
https://graph.microsoft.com/beta/sites/root/Lists/{List ID}/items/{item ID}/
Run Code Online (Sandbox Code Playgroud)
但以下查询没有按我的预期返回权限:
https://graph.microsoft.com/beta/sites/root/Lists/{List ID}/items/{item ID}/permissions
Run Code Online (Sandbox Code Playgroud)
我收到以下错误:
{
"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"
}
}
}
Run Code Online (Sandbox Code Playgroud)
以下查询也收到相同的错误:
https://graph.microsoft.com/beta/sites/root/Lists/{List ID}/permissions
Run Code Online (Sandbox Code Playgroud)
一年前有人问过非常类似的问题,答案是不可能。
现在可以吗?如果是的话我做错了什么?