简体   繁体   中英

SharePoint sites search using Microsoft Graph api returns deleted sites

When I do a search for SharePoint online sites using Microsoft graph endpoint https://graph.microsoft.com/v1.0/sites?search=* , it returns very old deleted sites along with active sites in SharePoint admin centre.These deleted sites are not in 'Deleted sites' of SharePoint admin centre. When I've accessed these sites in SharePoint online using the site URL provided by the graph search api, it gives '404 NOT FOUND'. When I've accessed the site using graph api GET /sites/{site-id} , it gives 'itemNotFound' error. Is there anyway to exclude these sites from the search response?

We don't currently have a way to do this in the Graph APIs. I would suggest going to User Voice here and putting the request there so it makes its way onto our backlog.

Thanks!

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM