Microsoft Graph请求查询报错SearchRequest Invalid (Guest access is not supported in beta. Please use v1.0 for guest search.)
使用的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对应的资料