Drive Search在Office 365组中不起作用 [英] Drive Search not working in Office 365 group

查看:96
本文介绍了Drive Search在Office 365组中不起作用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

尽管
  1. 在GROUP文件夹的根目录中创建newFileTest.docx
  2. 搜索文件:https://graph.microsoft.com/v1.0/groups/{GROUP_ID}/drive/root/search(q='newFileTest.docx')-返回0个项目
  3. 在您的PERSONAL文件夹的根目录中创建newFileTest.docx
  4. 搜索文件: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):

  1. create newFileTest.docx in the root of your GROUP folder
  2. Search for the file: https://graph.microsoft.com/v1.0/groups/{GROUP_ID}/drive/root/search(q='newFileTest.docx') - returns 0 items
  3. create newFileTest.docx in the root of your PERSONAL folder;
  4. 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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆