Recently Modified SharePoint Files (search: 'Documents')
The question it answers: Which SharePoint and OneDrive files were modified most recently?
At a glance
Section titled “At a glance”| Where in the app | SharePoint Online › Sites › Recently Modified Files |
| Workload | SharePoint Online |
| Kind | Table |
| Data | Read from Microsoft 365 when someone first opens it, then kept for the report cache lifetime (Settings > Data & cache, 1 hour unless changed). |
| Licence | No extra licence needed. |
| Report id (API and MCP) | sharepoint.files.recently-modified |
Columns
Section titled “Columns”| Column | Key | Type |
|---|---|---|
| Name | Name | Link |
| File URL | FileUrl | Text |
| Last modified | LastModified | DateTime |
What it needs
Section titled “What it needs”Licence: No extra licence needed.
Application permissions on the IntensiveReports app registration (all permissions):
| Permission | API | What it allows | Note |
|---|---|---|---|
Files.Read.All | Microsoft Graph | Read files in all site collections | |
Sites.Read.All | Microsoft Graph | Read items in all site collections |
Data sources it reads
POST /v1.0/search/query (entityTypes driveItem, queryString 'Documents IsDocument:1', sorted by lastModifiedDateTime, paged with from/size)GET /v1.0/sites/root?$select=siteCollection
Through the API and MCP
Section titled “Through the API and MCP”GET /ir-api/v1/reports/sharepoint.files.recently-modified?size=100An AI assistant reads it with the MCP tool get_report and the id sharepoint.files.recently-modified. The client needs the Read grant for SharePoint Online. See Using the API.