Microsoft Graph请求查询报错SearchRequest Invalid (Guest access is not supported in beta. Please use v1.0 for guest search.)

Jack Su 0 信誉分
2024-04-02T10:06:50.5166667+00:00

使用的https://login.partner.microsoftonline.cn这个接口获取的token

请求查询SharePoint是https://microsoftgraph.chinacloudapi.cn/v1.0/search/query接口

在Microsoft Entra ID中查看登录用户类型为 来宾

检查登录用户直接访问SharePoint是可以打开的(https://xxxxx.sharepoint.cn/sites/xx/)

查询接口返回报错为{"error":{"code":"BadRequest","message":"SearchRequest Invalid (Guest access is not supported in beta. Please use v1.0 for guest search.)","details":[{"code":"Microsoft.SubstrateSearch.Api.ErrorReporting.ResourceBasedExceptions.BadRequestException","message":"Guest access is not supported in beta. Please use v1.0 for guest search.","target":""}],"innerError":{"date":"2024-04-02T07:45:45","request-id":"9a0ac297-5d30-4ed7-bbed-xxxxxxxxx","client-request-id":"9a0ac297-5d30-4ed7-bbed-xxxxxxxxx"}}}

请问要如何设置 来宾 用户才可以查询到SharePoint对应的资料

Microsoft Graph
Microsoft Graph
一种 Microsoft 可编程性模型,用于公开 REST API 和客户端库以访问 Microsoft 365 服务上的数据。
53 个问题
SharePoint
SharePoint
一组用于共享和管理内容、知识和应用程序的 Microsoft 产品和技术。
13 个问题
0 个注释 无注释
{count} 票

你的答案

问题作者可以将答案标记为“接受的答案”,这有助于用户了解已解决作者问题的答案。