Azure 门户,图表 api:来宾用户

Azure portal, graph api: guest user

我正在设置图表 api 以访问 oneDrive 和 read/write 文件。 我正在尝试为我们的客户组织设置所有这些,他们将我添加为访客用户。 当我想访问他们的 oneDrive 时,我收到授权错误(accessDenied)。 我想知道他们是否需要给我特定的许可? 在应用程序注册中,我们设置此选项 Accounts in this organizational directory only (XXXX only - Single tenant) 我们是否应将其更改为 Accounts in any organizational directory (Any Azure AD directory) - 多租户)

{ "error": { "code": "accessDenied", "message": "There has been an error authenticating the request.", "innerError": { "request-id": "2af585b1-0f26-4815-9997-4328260287da", "date": "2019-09-20T11:48:45" } } }

结合您的,我猜您似乎想通过 Microsoft Graph 的个人帐户访问客户租户中的文件API。

您需要Control external sharing for OneDrive and ask your customer to share the file使用您的个人帐户。

之后,参考我上面发送的步骤post。