Search every site and OneDrive the connected account can reach with Microsoft Search. `query` takes KQL (e.g. `budget filetype:xlsx`, `path:"https://contoso.sharepoint.com/sites/Finance"`). `entity_types` picks what to return: `driveItem` (files and folders), `listItem`, `list`, `site` or `drive`. Hits are under `value[0].hitsContainers[0].hits`; page with `from`. Work or school accounts only. Requires Sites.Read.All (covered by the default Sites.ReadWrite.All).
1 | |
2 | |
3 | |
4 | |
5 | |
6 | |
7 | |
8 | |
9 | |
10 | |
11 | |
12 | |
13 | |
14 | |
15 | |
16 | |
17 | |
18 | |
19 | |
20 | |
21 | |
22 | |
23 | |
24 | |
25 | |
26 | |
27 | |
28 | |
29 | |
30 | |
31 | |
32 | |
33 | |
34 | |
35 | |
36 | |
37 | |
38 | |
39 | |
40 | |
41 | |
42 | |
43 | |
44 | |