Site Content Inventory
A 5-step recipe with Microsoft SharePoint. We can help you get access.
Recipe · 5 steps
Site Content Inventory
with Microsoft SharePoint
Produce a read-only inventory of a SharePoint site's lists, items, and files.
- Read the site title so the resulting inventory is labelled with the site it describes. Cheapest call in the API and worth it for the audit trail.
- Enumerate the non-hidden lists and libraries, capturing item counts and last-modified dates. This is the breadth pass of the inventory.
- Drill into the named list for its authoritative metadata, including whether versioning is enabled — a detail that materially changes any migration or retention plan.
- Sample the most recently modified items, newest first. A small sample answers the "is anyone still using this?" question without paging the whole list.
- List the files in the document library folder, capturing size, version, and check-out state so abandoned or checked-out documents surface before a migration rather than during one.
What you'll need to have ready
- listTitle: Title of the list to drill into (e.g. "Project Tasks").
- folderUrl: Server-relative document library folder to inventory, e.g. "/sites/mysite/Shared Documents".
- listLimit: Maximum number of lists to enumerate.
- itemSampleSize: How many recently modified items to sample from the list.
For your developer
Arazzo workflow sharepoint:site-content-inventory, 5 operations: getWebTitle → getLists → getListByTitle → getListItems → getFilesInFolder. Specs on APIs.io.