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

I am working with the Microsoft Graph Search API. I was previously able to set a region in my request f

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?

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1742331604a4423830.html

相关推荐

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信