Sunday, June 28, 2026

OneDrive Sharing Report – June 2026

Take Control of OneDrive Sharing Across Your Entire Microsoft 365 Tenant

Let’s be honest — Microsoft’s built-in sharing reports are pretty underwhelming. They show you a snapshot of recent activity, leave out half the context you actually need, and give you no clean way to answer the question every IT admin eventually gets asked: “Can you tell me exactly what we have shared, with who, and where it lives?”

This script answers that question. Completely. Click on the link below for the script.

OneDrive External Reporting Script – June 2026

Whether you’re preparing for a tenant migration, running a security audit, satisfying a compliance review, or just trying to understand the true sharing posture of your organisation, the TCG OneDrive External Sharing Report scans every OneDrive in your M365 environment and produces a single, beautifully structured Excel workbook with everything you need to know.

What it reports on:

* Every file and folder across all user OneDrives — not just recent activity, everything

* The full folder path so you know exactly where each item lives

* Whether each item is shared internally, externally, or not at all

* Who it’s shared with — names, email addresses, link types, and permissions

* Anonymous links, password-protected links, expiring links, and download-blocked links — all flagged

What makes it production-ready:

* Fully automated app registration — one menu option creates the Entra ID app, sets permissions, generates the certificate, creates the client secret, and writes everything to the config file. No portal wrestling required.

* Intelligent Microsoft.Graph module handling — automatically detects and resolves version conflicts across multiple installed versions, so it just works regardless of your PowerShell environment

* Graceful error handling — locked sites, unlicensed accounts, throttled API calls (with automatic retry and back-off), and empty drives are all handled cleanly without derailing the run

* Structured logging with INFO / WARN / ERROR levels — every run produces a timestamped log file with a summary count at the end, so you always know exactly what happened

* Single-user mode — need to quickly check one person’s OneDrive? Run it scoped to a single UPN without touching the rest of the tenant

* Configurable depth — control how deep into the folder tree the script recurses

The output is a fully formatted Excel file with AutoFilter, frozen headers, and a clean column layout: owner, folder path, file name, item type, shared status, external sharing flag, permissions detail, and direct URL. Filter on “Externally Shared = Yes” and you have your risk report in seconds.

#Microsoft365 #OneDrive #PowerShell #CyberSecurity #DataGovernance #MicrosoftGraph #ITPro #TheCloudGeezer #mvpbuzz

Mark Rochester
Mark Rochesterhttps://thecloudgeezer.com
Mark currently works in the cloud space assisting large companies to migrate from either on premises to the cloud, or cloud to cloud. His experience with Enterprise migrations spans more than 25 years which basically makes him old. However, with all the oldness creeping up he still finds technology massively exciting. Please reach out for a chat anytime you would like. :-)

Related Articles

SharePoint Discovery Tool

Know exactly who has access to what across your entire SharePoint Online environment. Managing SharePoint permissions at scale is one of the most time-consuming and...

Microsoft 365 Discovery Report

How long does a full Microsoft 365 tenant assessment take you? For me, it used to be half a day. Clicking through Exchange admin, SharePoint...

PowerSync Pro – Full Migration Series

If you’ve ever been responsible for a Microsoft 365 tenant‑to‑tenant migration, you already know the truth: There’s the theory vendors talk about… and then...

Stay Connected

88FansLike
36,999FollowersFollow
70,704SubscribersSubscribe
- Advertisement -

Latest Articles