Configuring SharePoint and OneDrive Sharing

Earn 25 points (50 with Pro) in two steps

  1. ① Read through the lesson — each section gets a ✓ as you scroll through it.
  2. ② When every section has a ✓, tap Complete lesson.

0 of 11 read · keep scrolling

✦ See fewer ads and earn double points — 50 a lesson instead of 25 — with Pro

Configuring SharePoint and OneDrive Sharing

Introduction: The Balance of Collaboration and Security

In the modern digital workplace, the ability to share files and folders across organizational boundaries is no longer a luxury; it is a fundamental requirement. Organizations rely on SharePoint and OneDrive to facilitate teamwork, not just within the office walls, but with partners, vendors, contractors, and clients. However, the ease with which users can share data often conflicts with the need to maintain strict data governance and security. If you leave these settings at their default state, you might inadvertently expose sensitive internal documents to the public internet, or conversely, make it so difficult for users to share information that they resort to insecure third-party tools to get their work done.

This lesson explores the technical configuration of SharePoint and OneDrive sharing settings. We will look at the hierarchy of controls, from the global tenant-wide policies down to site-specific permissions. Understanding these layers is critical for any administrator who needs to ensure that collaboration happens safely. By the end of this guide, you will understand how to define who can share, what they can share, and how they can share it, while maintaining a clear audit trail of who has access to your organization's data.


Not read yet

Understanding the Sharing Hierarchy

Microsoft 365 uses a tiered approach to sharing. This is a common point of confusion for new administrators. When you configure sharing, you are essentially setting a "ceiling" for what is possible. A lower-level setting (like a site-specific configuration) can restrict what is allowed at the global level, but it can never be more permissive than the global setting.

The Tenant Level (Global)

The Tenant level is the highest authority. If you disable external sharing at the tenant level, no site or user can override this. This is where you define the organization’s risk appetite. You can choose to allow sharing with anyone (anonymous links), guest users who exist in your directory, or restrict sharing to internal users only.

The SharePoint Site Level

Once the tenant allows external sharing, you can further restrict individual SharePoint sites. For example, you might want to allow external sharing for a "Project Marketing" site while completely prohibiting it for a "Human Resources" site containing sensitive employee records. This granular control allows you to apply different security postures based on the sensitivity of the data stored within a specific site collection.

The User/OneDrive Level

OneDrive for Business is essentially a personal site collection. Because every user has their own OneDrive, the sharing settings applied to OneDrive are managed centrally but apply to every individual's personal storage space. Managing this requires a balance; you want to empower users to work with external partners, but you must ensure they have the training to recognize when a link is too permissive.

Callout: Tenant vs. Site-Specific Settings Think of the tenant-level setting as a master valve on a water pipe. If the master valve is closed, no water flows to any branch. If the master valve is open, you can still control the flow at individual faucets (the site-specific settings). However, you can never get more water at the faucet than what the master valve allows. Always start your configuration at the tenant level and then refine it at the site level to meet specific project needs.


Not read yet

Configuring Tenant-Level Sharing Settings

To manage these settings, you must navigate to the SharePoint Admin Center. This is the control room for all SharePoint and OneDrive behavior.

Steps to Access Global Sharing Settings

  1. Sign in to the SharePoint Admin Center.
  2. On the left navigation pane, select Policies and then click Sharing.
  3. Under the External sharing section, you will see a slider for SharePoint and a separate slider for OneDrive.

Understanding the Sharing Tiers

When you move these sliders, you are choosing from four distinct levels of permission:

  • Anyone: Users can share files and folders using links that do not require sign-in. This is the most permissive setting.
  • New and existing guests: Guests must sign in or provide a verification code. They must be added to your directory (or exist there already) to access the content.
  • Existing guests: Only guests who are already in your organization's directory can access the content.
  • Only people in your organization: This completely disables external sharing.

Note: When you set the OneDrive sharing level, it cannot be more permissive than the SharePoint sharing level. If you set SharePoint to "Existing guests," you cannot set OneDrive to "Anyone." The system will enforce this dependency automatically to ensure your security perimeter remains consistent.


Not read yet

Managing Guest Access and Security

External sharing is fundamentally tied to the concept of "Guests" in Microsoft Entra ID (formerly Azure AD). When a user shares a file with an external person, that external person is often added as a Guest user in your tenant.

Limiting Sharing by Domain

Sometimes, you want to allow external sharing, but only with specific partner organizations. You can configure domain allow-lists or block-lists.

  • Allow-list: Only users from the specified domains can be invited as guests.
  • Block-list: Users from any domain can be invited, except for those on your blacklist.

File and Folder Link Settings

Beyond who can access the data, you need to control how they access it. Even if you allow "Anyone" to access a file, you can restrict the default link settings:

  • Default link type: Choose between "Anyone with the link," "People in your organization," or "Specific people." Setting this to "Specific people" is a security best practice because it forces the user to actively select who should have access rather than creating a public link by default.
  • Permissions: You can set the default permission to "View" instead of "Edit." This is a critical security control. Most users only need to read a document; granting edit access by default leads to accidental deletions or unauthorized changes.

Warning: Be very cautious with the "Anyone" setting. If a user creates an "Anyone" link, it can be forwarded to anyone on the internet. There is no audit trail of who exactly opened the file, only that the link was used. If your organization handles PII (Personally Identifiable Information) or sensitive financial data, you should strongly consider disabling "Anyone" links entirely.


Not read yet

Configuring OneDrive-Specific Settings

OneDrive sharing settings are managed in the same SharePoint Admin Center under the Sharing tab. However, there are nuances to OneDrive that you should understand.

Why OneDrive Needs Separate Attention

OneDrive is personal storage. Because it is personal, users often feel a sense of ownership that makes them less cautious about sharing. When a user leaves the company, their OneDrive becomes a potential security risk if they have shared files externally.

Best Practices for OneDrive

  1. Limit Sharing by Security Group: You can restrict external sharing to specific groups of users. For example, if only the Sales department needs to share with external clients, you can create a security group for them and restrict the sharing capability to that group only.
  2. Set Expiration for Anonymous Links: If you absolutely must use "Anyone" links, configure them to expire after a certain number of days (e.g., 30 days). This forces the user to re-evaluate the sharing link periodically.
  3. Control Access Requests: Ensure that "Allow members to share the site and individual files and folders" is configured according to your corporate policy. In many organizations, you want to restrict sharing to Site Owners only to prevent "link sprawl."

Not read yet

Practical Implementation: PowerShell Configuration

While the Admin Center UI is excellent for simple changes, PowerShell is essential for scaling, auditing, and ensuring consistent configurations across multiple sites.

Connecting to SharePoint Online

First, you need the SharePoint Online Management Shell.

# Connect to your SharePoint Admin Center
Connect-SPOService -Url https://yourtenant-admin.sharepoint.com

Checking Current Global Settings

To see your current configuration, use the Get-SPOTenant cmdlet. This will return a wealth of information, but you should filter for sharing-related properties.

Get-SPOTenant | Select-Object SharingCapability, SharingAllowedDomainList, RequireAnonymousLinksExpireInDays

Modifying Site-Level Settings via PowerShell

Suppose you have a project site that requires high-security measures and you want to ensure it is restricted to "Existing Guests" only, even if the tenant allows "Anyone."

# Set a specific site to only allow existing guests
Set-SPOSite -Identity https://yourtenant.sharepoint.com/sites/ProjectAlpha -SharingCapability ExistingExternalUserSharingOnly

Why Use PowerShell?

Using PowerShell allows you to create "Configuration as Code." You can store these scripts in a version control system like Git, enabling you to track changes to your security posture over time. If a site is misconfigured, you can quickly run a script to remediate it across the entire environment.


Not read yet

Comparison of Sharing Configurations

To help you decide which settings are appropriate for your organization, consider this reference table.

Feature Recommended (High Security) Balanced (Default) Permissive (Collaboration-Heavy)
External Sharing Existing Guests Only New and Existing Guests Anyone
Default Link Type Specific People People in Organization Anyone with Link
Default Permission View Edit Edit
Anonymous Links Disabled Enabled (30-day expire) Enabled (No expiration)
Domain Restrictions Allow-list None None

Callout: The Risk of Over-Sharing Over-sharing is the leading cause of data leakage in Microsoft 365. When users share files, they rarely consider the lifecycle of that share. They send an email, share a link, and then forget about it. Six months later, that external party still has access to the latest version of that document, which might now contain updated, more sensitive information. Always favor "Specific People" sharing over "Anyone" links to ensure you maintain control over the identity of the recipient.


Not read yet

Managing Site-Specific Sharing Settings

Sometimes, you need to override the tenant-wide settings for a specific site. This is common when you have a site dedicated to a high-security project.

Step-by-Step: Restricting a Specific Site

  1. Navigate to the SharePoint Admin Center.
  2. Click Active sites in the left menu.
  3. Select the site you want to modify.
  4. Click the Settings tab in the site properties pane that appears.
  5. Under External file sharing, select the desired level of sharing.
  6. Click Save.

Note that if you set this to "Only people in your organization," all existing external links for that site will stop working immediately. This is a disruptive change, so always communicate with site owners before modifying these settings.


Best Practices and Industry Standards

Managing SharePoint and OneDrive sharing is as much about process as it is about technology. Here are several industry-standard best practices to keep your environment secure:

1. Enable Sensitivity Labels

Sensitivity labels are the gold standard for data governance. By applying a label (like "Confidential" or "External Only") to a site, you can automatically enforce sharing restrictions. For example, a "Highly Confidential" label can be configured to block all external sharing, regardless of the tenant-level settings.

2. Implement Access Reviews

Establish a process for reviewing guest access. Use Microsoft Entra ID Access Reviews to periodically ask site owners if they still need their external guests to have access. If they don't respond, the access can be automatically revoked. This keeps your guest list clean and prevents "orphan" access.

3. Use Microsoft 365 Groups for Collaboration

Instead of sharing individual files, encourage users to add external partners as guests to a Microsoft 365 Group or a Team. This provides a contained environment where access can be managed centrally. When the project is over, you can remove the guest from the Group, and they lose access to all associated SharePoint files simultaneously.

4. Monitor with Audit Logs

You should regularly audit who is sharing files. Use the Microsoft Purview compliance portal to search the audit logs for SharingInvitationCreated and AnonymousLinkCreated events. This gives you visibility into user behavior and helps you identify training opportunities for users who may be sharing files too broadly.

5. Educate Your Users

Technology alone cannot stop a user from making a poor decision. Conduct training sessions that explain the difference between a "View" link and an "Edit" link. Teach users how to check the "Manage Access" pane on a file to see exactly who has access to it.


Not read yet

Common Pitfalls and How to Avoid Them

Even experienced administrators fall into common traps when managing SharePoint and OneDrive. Here are the most frequent mistakes and how to steer clear of them.

Pitfall 1: "Set and Forget"

Many administrators configure the tenant settings once and never revisit them. As your organization changes, your sharing requirements will change.

  • Solution: Schedule a quarterly review of your SharePoint sharing settings. Check if new business units have been created that need different policies.

Pitfall 2: Disabling Everything Out of Fear

If you make sharing too difficult, users will find a way around it. They will use personal Dropbox accounts, USB drives, or email attachments to bypass your controls.

  • Solution: Aim for a "balanced" approach. Provide secure, sanctioned ways for users to share, and they will be far less likely to use unauthorized tools.

Pitfall 3: Ignoring OneDrive

Administrators often focus heavily on SharePoint sites and forget that every user has a personal storage space that acts like a site.

  • Solution: Treat OneDrive settings with the same level of scrutiny as SharePoint site settings. Ensure that the default sharing permissions for OneDrive are as restrictive as your business requirements allow.

Pitfall 4: Misunderstanding "Anyone" Links

Users often think "Anyone" means "Anyone in my company." They do not realize that "Anyone" means "Anyone on the public internet."

  • Solution: Use the UI customization options to rename the link types or add warning banners if your organization allows custom branding. More importantly, educate users on the specific risks of the "Anyone" link type.

Not read yet

Auditing and Reporting

Visibility is essential for security. You cannot manage what you cannot see. Microsoft 365 provides several ways to report on external sharing.

Using the SharePoint Admin Center Reports

The "Usage" report in the SharePoint Admin Center provides insights into how many files are being shared externally. While it doesn't give you a list of every single file, it does show trends. If you see a sudden spike in external sharing, it might indicate a policy violation or a need for better user training.

Using PowerShell for Inventory

You can use PowerShell to generate a report of all sites and their current sharing settings. This is useful for compliance reporting.

# Export all site sharing settings to a CSV file
Get-SPOSite -Limit All | Select-Object Url, SharingCapability | Export-Csv -Path "C:\Reports\SiteSharingSettings.csv" -NoTypeInformation

This report allows you to quickly identify any sites that have been set to "Anyone" sharing, which might be a compliance risk. You can then investigate those sites individually to ensure that the sharing is intentional and authorized.


Not read yet

Key Takeaways

Configuring SharePoint and OneDrive sharing is a foundational skill for managing a secure Microsoft 365 environment. By mastering these settings, you protect your organization's data while enabling the collaboration that makes modern work possible. Here are the key points to remember:

  1. Hierarchy Matters: Understand that tenant-level settings act as the master control, while site-level settings provide granular control. Always start with the most restrictive tenant setting that meets your business needs.
  2. Default to "Specific People": Whenever possible, configure your environment so that the default sharing option is "Specific People." This forces users to be intentional about who they grant access to, significantly reducing the risk of accidental exposure.
  3. Guest Lifecycle Management: External sharing is inextricably linked to Guest accounts in Entra ID. Use automated access reviews to ensure that guests do not retain access to your environment indefinitely after a project concludes.
  4. Use PowerShell for Consistency: Manual configuration in the Admin Center is prone to human error. Use PowerShell to audit and enforce your sharing policies across all your SharePoint sites to ensure your security posture is uniform.
  5. Audit Regularly: Use the audit logs in the Microsoft Purview portal to monitor sharing activity. Identifying patterns of over-sharing early allows you to intervene and provide training before a security incident occurs.
  6. Balance Security and Usability: If your sharing policies are too restrictive, users will circumvent them using insecure, non-sanctioned tools. Provide a clear, secure path for collaboration so that users choose the safe route by default.
  7. Leverage Sensitivity Labels: Where possible, use automated labels to enforce sharing policies. This removes the burden from the end-user and ensures that sensitive documents are protected by policy rather than just by good intentions.

By following these principles, you will be able to build a collaboration environment that is both highly productive and securely governed. Remember that configuration is a continuous process; as your organization evolves, so too should your approach to external sharing. Stay curious, keep your policies updated, and always prioritize the security of your data.

Not read yet

Each section gets a ✓ as you scroll through it. Tap the button to jump to the next one.