Drive Search在Office 365组中不起作用 [英] Drive Search not working in Office 365 group
问题描述
- 在GROUP文件夹的根目录中创建
newFileTest.docx
- 搜索文件:
https://graph.microsoft.com/v1.0/groups/{GROUP_ID}/drive/root/search(q='newFileTest.docx')
-返回0个项目 - 在您的PERSONAL文件夹的根目录中创建
newFileTest.docx
; - 搜索文件:
https://graph.microsoft.com/v1.0/me/drive/items/root/search(q='newFileTest.docx')
-返回1个项目
很高兴在需要时提供更多信息.
感谢您抽出宝贵的时间回复大家!原来问题出在我要执行搜索的网站之一.在SharePoint UI中搜索在此网站上也不起作用,并且在OneDrive的团队网站"列表中不可见.在此列表中可以看到一个不同的团队网站 ,并且在该网站中进行搜索可以在SharePoint UI和Graph API中使用.将会就此向Microsoft打开支持通知单.再次感谢!
受影响的团队网站:
工作团队网站:
DriveItem Search does not seem to be possible in an Office 365 group context, despite the documentation mentioning it should be supported:
GET /groups/{group-id}/drive/root/search(q='{search-text}')
Steps to reproduce (e.g. in the Graph Explorer):
- create
newFileTest.docx
in the root of your GROUP folder - Search for the file:
https://graph.microsoft.com/v1.0/groups/{GROUP_ID}/drive/root/search(q='newFileTest.docx')
- returns 0 items - create
newFileTest.docx
in the root of your PERSONAL folder; - Search for the file:
https://graph.microsoft.com/v1.0/me/drive/items/root/search(q='newFileTest.docx')
- returns 1 item
Happy to provide more info if needed.
Thanks for taking the time to reply everyone! Turns out the problem is with one of my sites that I'm trying to perform a search in. Searching in the SharePoint UI also doesn't work on this site, and it's not visible in the list of Team Sites in OneDrive. A different Team Site is visible in this list, and searching in that Site works in both the SharePoint UI and Graph API. Will open a support ticket with Microsoft about this. Thanks again!
The affected Team Site:
The working Team Site:
这篇关于Drive Search在Office 365组中不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!