无法访问其他用户的onedrive详细信息

时间:2017-11-02 18:03:44

标签: microsoft-graph

虽然端点可以正常工作以获取我自己的OneDrive的详细信息,但我无法使用Microsoft Graph获取其他用户的OneDrive的状态。即他们有一个,他们添加了任何文件。

首先,我创建了一个新的用户帐户。

然后,使用Microsoft Graph Explorer我以我自己的身份登录(管理员)并且我请求:

https://graph.microsoft.com/v1.0/users/{user-id}/drive

返回

{
"error": {
    "code": "ResourceNotFound",
    "message": "User's mysite not found.",
    "innerError": {
        "request-id": "6c2f1d09-ebb1-49fe-83ac-46caf946eefa",
        "date": "2017-11-02T17:55:45"
    }
}

}

如果我以用户身份登录并通过网络访问她的OneDrive并重试相同的端点,则返回:

{
"error": {
    "code": "itemNotFound",
    "message": "The resource could not be found.",
    "innerError": {
        "request-id": "aecda4bb-4baf-42ab-81f0-ce9e3b959dd8",
        "date": "2017-11-02T17:59:41"
    }
}

}

不应该在这里返回驱动器的ID吗?我通过Microsoft Graph Explorer登录时请求所有权限。

感谢您的帮助!

0 个答案:

没有答案
相关问题