sharepoint-online - 获取 domain-my.sharepoint.com 的文档库

标签 sharepoint-online microsoft-graph-api

我正在尝试访问用户在他们自己的 domain-my.sharepoint.com 中创建的文档库,根据我推断的文档,方法是

https://graph.microsoft.com/beta/sites/domain-my.sharepoint.com/drives

作为驱动器映射到文档库(?)

我可以在 domain.sharepoint.com 上使用它,但无法在 domain-my.sharepoint.com 上使用

内容如下:

{
    "error": {
        "code": "invalidRequest",
        "message": "Provided id is not suitable for the current host",
        "innerError": {
            "request-id": "09c5722c-cfc3-4589-ba76-e57c44590d16",
            "date": "2017-06-27T06:53:59"
        }
    }
}

我们将不胜感激。

最佳答案

我相信您正在寻找的是 OneDrive endpoint .您可以使用 https://graph.microsoft.com/v1.0/me/drive/

访问当前用户的drive

关于sharepoint-online - 获取 domain-my.sharepoint.com 的文档库,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/44774017/

相关文章:

javascript - 如何添加具有不同元素的数组并使用javascript添加重复元素值

css - 将 CSS 添加到嵌入式 Yammer

java - 通过 MSGraph API 创建组也不会创建共享点

microsoft-graph-api - 从用户和扩展管理器中选择特定字段

asp.net-mvc - 如果我的应用程序使用 Azure "Easy Auth",如何向 Microsoft Graph 进行身份验证

javascript - Office插件开发: Connect to SharePoint site and get data

elasticsearch - 将SharePoint在线索引插入Elasticsearch

azure - 尝试通过 python msal 库访问 Microsoft Power Automate API

azure - 为什么不同的 Microsoft Graph API 返回不同的数据

sharepoint - 将 SharePoint 用户写入 SharePoint 列表中的用户字段的正确方法