我编写的 Python Flask 应用程序使用 Office 365 库与我们公司 SharePoint (在 365 云中) 进行交互。
我设置了以下应用程序权限,但是 https://xyz.sharepoint.com/sites/xxxyyyzzz/_api/Web/getFolderByServerRelativeUrl('sites%2Fxxxyyyzzz%2FFreigegebene%2520Dokumente%2FGeneral')/Folders 返回“401 - 未经授权的错误”。
我设置了以下应用程序权限,但是 https://xyz.sharepoint.com/sites/xxxyyyzzz/_api/Web/getFolderByServerRelativeUrl('sites%2Fxxxyyyzzz%2FFreigegebene%2520Dokumente%2FGeneral')/Folders 返回“401 - 未经授权的错误”。
<AppPermissionRequests AllowAppOnlyPolicy="true">
<AppPermissionRequest Scope="http://sharepoint/content/sitecollection" Right="FullControl" />
<AppPermissionRequest Scope="http://sharepoint/content/sitecollection" Right="FullControl"/>
<AppPermissionRequest Scope="http://sharepoint/content/sitecollection/web" Right="FullControl"/>
<AppPermissionRequest Scope="http://sharepoint/content/sitecollection/web/list" Right="FullControl"/>
<AppPermissionRequest Scope="http://sharepoint/content/xyz" Right="FullControl"/>
</AppPermissionRequests>
这将解析为以下权限:
- 允许它完全控制此站点集。
- 允许它完全控制此站点。
- 允许它完全控制列表:
- 文档
- 允许它与其他用户共享其权限。
- 允许它访问有关此站点用户的基本信息。
上传/下载文件等其他调用正在工作,但我无法使列表文件夹/创建文件夹正常工作。 在文档中也没有找到其他权限或更高的访问级别。
我缺少什么?