MSP StockroomFind a guide, template or tool…/
Curated SOPs / Microsoft 365 and identity

M365 Curated SOP / Microsoft 365 and identity

Check SharePoint and OneDrive sharing settings before Copilot

Read how open a client's SharePoint and OneDrive sharing is before Microsoft 365 Copilot is turned on.

Low risk / Read-only / Reviewed December 1, 2026

Written and maintained by MSP Stockroom. Nobody else edits it.

On this page

Before you run anything: read every command first and understand what it does. Replace example names, domains and addresses with your own. Try it on a test device or tenant before a client's. Keep client names, passwords and keys out of tickets and chat.

Purpose

Read how open a client's SharePoint and OneDrive sharing is before Microsoft 365 Copilot is turned on. Copilot can find and summarise anything a user can already open, so files shared too widely become easy to surface. Run it before a Copilot rollout and at each quarterly review. Read-only: nothing in this SOP changes the tenant.

Scope and prerequisites

  • Run by the client's assigned engineer.
  • Needs the SharePoint Administrator role.
  • The SharePoint Online Management Shell installed from the PowerShell Gallery. This SOP is written for Windows PowerShell 5.1. In PowerShell 7, import the module with -UseWindowsPowerShell.
  • The client's SharePoint admin address, in the form https://<tenant>-admin.sharepoint.com.
  • Store the results in your documentation platform, never in this library.

Steps

  1. Connect to the client's SharePoint admin centre:
    # Replace <tenant> with the client's tenant name. You will be asked to sign in.
    Connect-SPOService -Url "https://<tenant>-admin.sharepoint.com"
  2. Read the tenant-wide sharing settings:
    Get-SPOTenant | Select-Object SharingCapability, OneDriveSharingCapability,
        DefaultSharingLinkType, DefaultLinkPermission,
        RequireAnonymousLinksExpireInDays, FileAnonymousLinkType, FolderAnonymousLinkType,
        ShowEveryoneClaim, ShowEveryoneExceptExternalUsersClaim

    Read the result:

    • SharingCapability and OneDriveSharingCapability, from most open to most closed: ExternalUserAndGuestSharing (anyone links allowed), ExternalUserSharingOnly (new and existing guests), ExistingExternalUserSharingOnly (existing guests only), Disabled. ExternalUserAndGuestSharing is the most open and should be a recorded decision.
    • DefaultSharingLinkType: AnonymousAccess means the default link works for anyone with it. Direct (specific people) is the safest default.
    • DefaultLinkPermission: Edit means new links let people change files by default.
    • RequireAnonymousLinksExpireInDays: 0 or -1 means anyone links never expire.
    • ShowEveryoneClaim and ShowEveryoneExceptExternalUsersClaim: True means users can share with everyone in the company in one step.
  3. List sites whose own sharing setting is more open than the client expects:
    Get-SPOSite -Limit All | Where-Object SharingCapability -eq 'ExternalUserAndGuestSharing' |
        Select-Object Url, Title, SharingCapability
  4. Disconnect when finished:
    Disconnect-SPOService

Verify

Each open setting is written down with the client's reason for it. Anyone links either expire or are switched off, and the default link is not anyone with Edit.

Rollback

Nothing to roll back; this SOP only reads. Tightening sharing is a separate change, made with the client's approval, because it can break links people already use.

Notes

New tenants start with SharePoint sharing at its most permissive setting. These settings show what users can do, not what they have already shared. To find files already shared with everyone or by anyone links, Microsoft points to the data access governance reports in SharePoint Advanced Management, which needs its own licence. A site's own setting can be more closed than the tenant's, never more open. See https://learn.microsoft.com/sharepoint/turn-external-sharing-on-or-off for Microsoft's guidance.

Sources and notes

Curated SOP from the MSP Stockroom SOP library (curated/m365-identity/check-sharepoint-and-onedrive-sharing-settings-before-copilot.md). Last reviewed December 1, 2026. Tested on: Not yet run; written for SharePoint Online Management Shell; Windows PowerShell 5.1. Vendor screens and commands change; check the vendor documentation before you rely on a step. Found a mistake? See corrections.

Search the stockroom

↑ ↓ to choose · Enter to open · Esc to close

Open the full search page →