Skip to content

All Document Libraries

The question it answers: Which document libraries exist in the SharePoint sites, and when was each last modified?

Where in the appSharePoint Online › Document Libraries › All DocumentLibraries
WorkloadSharePoint Online
KindTable
DataRead from Microsoft 365 when someone first opens it, then kept for the report cache lifetime (Settings > Data & cache, 1 hour unless changed).
LicenceNo extra licence needed.
Report id (API and MCP)sharepoint.document-libraries.all
ColumnKeyType
SiteSiteNameText
NameNameLink
IDIDText
Drive TypeDriveTypeText
Last ModifiedLastModifiedDateTimeOffsetDateTime

Licence: No extra licence needed.

Application permissions on the IntensiveReports app registration (all permissions):

PermissionAPIWhat it allowsNote
Sites.Read.AllMicrosoft GraphRead items in all site collections
Data sources it reads
  • GET /v1.0/sites/getAllSites (all pages)
  • GET /v1.0/sites/{id}/drives (all pages, per site)
GET /ir-api/v1/reports/sharepoint.document-libraries.all?size=100

An AI assistant reads it with the MCP tool get_report and the id sharepoint.document-libraries.all. The client needs the Read grant for SharePoint Online. See Using the API.