最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

Microsoft Graph Search API no longer returns OneDrive files when searching with application permissions - Stack Overflow

programmeradmin1浏览0评论

I am working with the Microsoft Graph Search API. I was previously able to set a region in my request for the driveItem entity type and get back results for both OneDrive and SharePoint, but just today, it started only returning SharePoint results. Is this the expected behavior now? If it is, this has some very bad effects on my application.

POST .0/search/query

{
    "requests": [
        {
            "entityTypes": [
                "driveItem"
            ],
            "query": {
                "queryString": "test"
            },
            "region": "NAM"
        }
    ]
}

This used to return thousands of results, most coming directly from OneDrive accounts. I've tested it in the Microsoft Graph Explorer with delegated permissions and no region property and I get back all of the results. But when I test it using Postman and application permissions, it returns 4, all of which come from SharePoint. Is there a permission I need to set in my Entra app registration to get more than just the SharePoint results again?

发布评论

评论列表(0)

  1. 暂无评论