polok.
All projects
App

IT operations tool Open source

SharePoint Manager

An open-source tool that gives IT teams insight into their SharePoint storage: where the space goes, which files stand out and what is growing.

Illustration of the starting point: storage is 91 percent full, and the questions are where the space goes, how much is old versions, whether there are copies, which sites are unused and what is in the recycle bins.

The starting point

Microsoft 365 shows how much storage is used, but not why. Version history, recycle bins, duplicates and large, old files take up space without anyone noticing, and when the quota is nearly full it is hard to know where to start.

The SharePoint Manager overview with storage split into files, version history and recycle bins against the quota, a needs-attention list and storage over 90 days (sample data).

The solution

SharePoint Manager scans every site and shows storage layer by layer: files, version history, recycle bins and headroom against the quota. The dashboard points out large and unexpected files, duplicates, unused sites and libraries off the version standard, and sends an email alert on unusual growth.

Diagram of the design: the scanner on Azure Functions reads SharePoint and Microsoft Graph with read-only rights and writes to tables and a Log Analytics workspace. The dashboard reads both, and only an optional operator action changes SharePoint.

How it’s built

The scanner runs on Azure Functions with read-only access. The dashboard only reads too, unless you turn on an operator action that moves chosen files to the recycle bin with the operator's own rights. Nothing is deleted permanently, and everything is deployed with Bicep into the organisation's own Azure subscription.

Diagram: the organisation's private repository with its own values feeds the template, scanner and dashboard in the open repository, which are deployed to the organisation's own Azure subscription.

Outcome

I'm making the tool open source under Apache 2.0, so other organisations can run their own copy on their own infrastructure. Each organisation keeps its own values and names in a separate private repository. The tool is at an early stage.

Want to find out more?

The code is open, so you can read it or use it yourself.

Next projectpolok.no