Office365 访问SharePoint网站';通过Microsoft Graph创建列表

Office365 访问SharePoint网站';通过Microsoft Graph创建列表,office365,microsoft-graph-api,Office365,Microsoft Graph Api,在图形浏览器中尝试基本示例。我正在使用beta API,但我认为这应该符合文档要求 GEThttps://graph.microsoft.com/beta/sites/root我回来了 { "@odata.context": "https://graph.microsoft.com/beta/$metadata#sites/$entity", "createdDateTime": "2016-10-11T21:54:40.16Z", "description": "",

在图形浏览器中尝试基本示例。我正在使用beta API,但我认为这应该符合文档要求

GEThttps://graph.microsoft.com/beta/sites/root
我回来了

{
    "@odata.context": "https://graph.microsoft.com/beta/$metadata#sites/$entity",
    "createdDateTime": "2016-10-11T21:54:40.16Z",
    "description": "",
    "id": "contoso.sharepoint.com,11111111-1111-1111-1111-11111111,11111111-1111-1111-1111-11111111",
    "lastModifiedDateTime": "2017-06-14T20:03:19Z",
    "name": "",
    "webUrl": "https://contoso.sharepoint.com",
    "root": {},
    "siteCollection": {
        "hostname": "contoso.sharepoint.com"
    },
    "displayName": "The Site"
}
很好,我得到了我的网站,但我没有看到预期的列表

尝试
https://graph.microsoft.com/beta/sites/root/lists
https://graph.microsoft.com/v1.0/sites/root?expand=lists
我明白了

{
    "error": {
        "code": "unauthenticated",
        "message": "Access denied. You do not have permission to perform this action or access this resource.",
        "innerError": {
            "request-id": "ded1ecbe-9664-4a29-9f8b-3278aeebc6d0",
            "date": "2017-06-14T20:33:35"
        }
    }
}

我检查了权限,从中可以看出我拥有必要的权限。

请再试一次好吗?这个()似乎正在工作。也许你需要一个管理员来接受这些更改,因为你做的一切都是正确的