In today’s fast-paced business environment, growing companies require tools that not only streamline operations but also provide measurable returns on investment (ROI). Custom SharePoint...
Did you know that 58% of organizations have experienced a security incident due to misconfigured external sharing settings? SharePoint Online is one of the most powerful collaboration platforms available today, but without proper security configurations, your sensitive business data could be exposed to unauthorized users.
Microsoft has published extensive guidance on securing external sharing in SharePoint Online, but it’s spread across multiple documentation pages, admin centers, and compliance portals. This makes it challenging for IT administrators and business leaders to implement a comprehensive security strategy.
In this guide, I’ve consolidated Microsoft’s official best practices into one actionable resource. You’ll learn exactly how to configure external sharing securely at every level—from tenant-wide settings down to individual file permissions—while maintaining the collaboration capabilities your teams need.
📋 What You’ll Learn:
- How to configure external sharing at tenant, site, and file levels
- Microsoft Purview DLP configuration for data protection
- Defender for Office 365 threat protection setup
- Azure AD B2B guest access controls and governance
- Complete enterprise-grade security checklist
1. Setting the Right External Sharing Level (Tenant → Site → File)
Microsoft recommends a layered approach to external sharing configuration. Rather than applying a single setting across your entire organization, you should configure sharing controls at three distinct levels to balance security with collaboration needs.
Tenant-Level Configuration
The tenant level is your most permissive layer—it sets the maximum sharing capability for your entire organization. Microsoft recommends setting this to “New and existing guests” for enterprise organizations, which allows collaboration with external partners while maintaining control.
⚠️ Important: Avoid enabling “Anyone with the link” (anonymous sharing) at the tenant level unless absolutely necessary. This creates significant security risks and makes auditing difficult.
How to configure tenant-level sharing:
- Navigate to the SharePoint Admin Center
- Go to Policies → Sharing
- Under “External sharing,” select “New and existing guests”
- Configure additional settings for link permissions and expiration
- Click Save
Site-Level Configuration
Site-level settings allow you to apply stricter controls for sensitive content. This is where you implement the principle of least privilege based on the site’s purpose and data classification.
| Site Type | Recommended Setting | Rationale |
|---|---|---|
| Collaboration Sites | Allow guest access | Partners need access for joint projects |
| HR Sites | Block external sharing | Contains sensitive employee/financial data |
| Legal/Compliance Sites | Block external sharing | Regulatory requirements mandate restrictions |
| Client Project Sites | Specific guests only | Limited to specific client organization |
File and Folder Level
For maximum control, use “Specific people” links when sharing individual files or folders. This ensures only explicitly authorized individuals can access the content, and you can revoke access at any time.
💡 Pro Tip: Configure default link types in your tenant settings so users automatically share with the most secure option. This prevents accidental oversharing through “Anyone” links.
📘 Microsoft Reference: Permissions and sharing in SharePoint & OneDrive
2. Using Microsoft Purview for Data Loss Prevention (DLP)
Microsoft Purview provides robust Data Loss Prevention (DLP) capabilities that prevent sensitive information from being shared with unauthorized external users. This is your primary defense against accidental data leaks and intentional data exfiltration.
Essential DLP Configuration Steps
1. Create DLP Policies to Block Sensitive Data Sharing:
- Identify sensitive information types (credit card numbers, SSNs, health records, intellectual property)
- Create policies that block external sharing when documents contain these data types
- Configure policy tips to educate users when they attempt to share sensitive content
2. Apply Sensitivity Labels:
- Create labels for different classification levels (Confidential, Internal Only, Public)
- Configure labels to apply encryption and access restrictions automatically
- Train users to apply labels manually when creating sensitive documents
3. Implement Conditional Access Policies:
- Require multi-factor authentication (MFA) for external users
- Block access from untrusted locations or devices
- Enforce session controls for browser-based access
4. Enable Insider Risk Management:
- Configure policies to detect unusual sharing patterns
- Set up alerts for bulk downloads or external sharing spikes
- Investigate anomalies through the Purview compliance portal
📘 Microsoft Reference: Microsoft Purview DLP for SharePoint & OneDrive
3. Microsoft Defender for Office 365 Malware & Threat Protection
External sharing introduces the risk of malware-infected files entering your SharePoint environment. Microsoft Defender for Office 365 provides advanced threat protection specifically designed to detect and neutralize these threats before they impact your organization.
Critical Security Features to Enable
🛡️ Safe Attachments
Scans all attachments in a virtual environment before delivery. Detects and removes malicious files before users can open them.
🔗 Safe Links
Provides real-time URL scanning and verification. Blocks malicious links at time-of-click, even in already-delivered documents.
🦠 Anti-Malware Policies
Detects and blocks known malware signatures. Automatically quarantines infected files and notifies administrators.
⚡ Zero-Hour Auto Purge (ZAP)
Retroactively removes malicious emails and files that were already delivered. Provides protection against zero-day threats.
🚨 Critical Configuration: Safe Attachments for SharePoint, OneDrive, and Microsoft Teams must be enabled separately. This setting is often overlooked during initial Defender configuration.
📘 Microsoft Reference: Microsoft Defender for Office 365 service description
4. Azure AD (Entra ID) B2B Guest Access Controls
Azure AD B2B (now Microsoft Entra ID) provides the identity foundation for external sharing. Proper guest access configuration ensures external users authenticate securely and maintain only the access they absolutely need.
Mandatory Guest Access Security Controls
Multi-Factor Authentication (MFA) for All Guests:
This is non-negotiable. Every external user accessing your SharePoint environment must authenticate through MFA. Configure this through Conditional Access policies in Azure AD.
// PowerShell: Enable MFA for all guest users
$policy = New-AzureADPolicy -Definition @('{
"DisplayName":"Require MFA for Guests",
"State":"enabled",
"Conditions":{
"Users":{
"IncludeUsers":["AllGuests"]
}
},
"GrantControls":{
"BuiltInControls":["Mfa"]
}
}') -Type "ConditionalAccessPolicy"
Additional Guest Controls:
- Restrict guest access to least privilege—only grant access to specific sites and files
- Configure access reviews every 90 days to identify and remove inactive guests
- Set up Conditional Access to block sign-ins from high-risk locations or devices
- Use cross-tenant access settings to establish trusted relationships with partner organizations
- Enable guest user expiration after 180 days of inactivity
📘 Microsoft Reference: Manage guest access in Microsoft 365 (Azure AD / Entra ID)
5. Governance & Lifecycle Management
Security isn’t just about initial configuration—it requires ongoing governance and lifecycle management. Without proper governance, external access accumulates over time, creating significant security debt.
Governance Implementation Framework
| Governance Control | Implementation | Review Frequency |
|---|---|---|
| Guest Account Expiration | Auto-expire after 90-180 days | Quarterly review |
| Site Classification | Apply sensitivity labels to sites | Monthly audit |
| Access Reviews | Automated quarterly reviews | Quarterly |
| Audit Logging | Enable comprehensive logging | Continuous monitoring |
| Teams-Connected Sites | Standardize collaboration model | Monthly review |
📘 Microsoft Reference: Governance overview for SharePoint
6. Planning Secure File Collaboration
Microsoft’s official “Plan secure file collaboration” guidance provides a comprehensive framework for enabling external collaboration without compromising security. This goes beyond technical controls to address collaboration models and user behavior.
Key Collaboration Planning Elements
Choose the Right Collaboration Model:
- Internal-only: No external sharing permitted
- Guest-based: Invite specific external users as guests
- Partner-based: Establish cross-tenant trust with partner organizations
- Customer/client: Secure, time-limited access for specific projects
Use Secure Sharing Links:
- Default to “Specific people” links for all external sharing
- Set expiration dates on all external sharing links (maximum 30 days recommended)
- Require password protection for anonymous links (if absolutely necessary)
- Block download capability for view-only sharing scenarios
Apply Least-Privilege Access:
- Grant the minimum permissions required (view vs. edit vs. full control)
- Use SharePoint groups rather than individual permission assignments
- Regularly audit permissions and remove unnecessary access
📘 Microsoft Reference: Plan secure file collaboration
7. Compliance & Regulatory Controls
For organizations in regulated industries, external sharing must comply with GDPR, HIPAA, SOC 2, ISO 27001, and other frameworks. Microsoft provides built-in tools to maintain compliance while enabling external collaboration.
Compliance Tool Suite
📊 Compliance Manager
Assess compliance posture against regulatory frameworks. Receive actionable recommendations to improve your compliance score.
🔍 eDiscovery
Search, hold, and export content for legal proceedings. Includes external content shared with your organization.
📝 Audit Logging
Track all external access and sharing activities. Maintain comprehensive audit trails for compliance reporting.
🚧 Information Barriers
Prevent communication between specific groups. Useful for financial services, legal, and other regulated sectors.
📘 Microsoft Reference: Microsoft Compliance documentation
8. Zero Trust Principles for External Sharing
Microsoft’s Zero Trust model provides the philosophical foundation for all external sharing security. Rather than trusting users inside your network perimeter, Zero Trust requires continuous verification of every access request.
The Three Zero Trust Pillars for External Sharing
🔐 Verify Explicitly
Always authenticate and authorize based on all available data points, including user identity, location, device health, and data classification.
Implementation: MFA, device compliance policies, real-time risk assessment
🔒 Use Least Privilege Access
Limit external user access with Just-In-Time (JIT) and Just-Enough-Access (JEA) principles. Grant only the permissions needed for the specific task.
Implementation: Site-level restrictions, time-limited links, read-only sharing options
🛡️ Assume Breach
Design systems assuming network compromise has already occurred. Minimize blast radius and segment access to prevent lateral movement.
Implementation: Continuous monitoring, automated alerts, incident response playbooks
📘 Microsoft Reference: Compliance & security guidance for SharePoint
9. Complete Enterprise Best-Practice Checklist
Use this comprehensive checklist to ensure your SharePoint external sharing configuration meets Microsoft’s enterprise-grade security recommendations.
🔐 External Sharing Controls
- ☐ Configure tenant-level external sharing to “New and existing guests”
- ☐ Restrict site-level sharing for sensitive sites (HR, Legal)
- ☐ Default to “Specific people” links for all external sharing
- ☐ Configure link expiration policies (maximum 30 days for external)
- ☐ Implement domain allowlist/blocklist restrictions
🛡️ Security Controls
- ☐ Enable MFA for all guest users (mandatory)
- ☐ Enable Safe Attachments for SharePoint, OneDrive, and Teams
- ☐ Enable Safe Links with real-time scanning
- ☐ Create DLP policies for sensitive data types
- ☐ Deploy sensitivity labels with automatic classification
🏛️ Governance Controls
- ☐ Enable guest account expiration (90-180 days)
- ☐ Schedule quarterly access reviews for all external users
- ☐ Enable comprehensive audit logging and alerting
- ☐ Apply site classification labels consistently
📋 Compliance Controls
- ☐ Apply sensitivity labels with encryption for confidential sites
- ☐ Use Microsoft Purview Compliance Manager for assessments
- ☐ Configure eDiscovery for legal hold capabilities
- ☐ Implement information barriers if required by regulations
🎯 Need Help Implementing These Controls?
Our SharePoint security experts can audit your current configuration and implement enterprise-grade security controls tailored to your organization.
Get a Free Security Assessment →10. Frequently Asked Questions About SharePoint External Sharing
What is the most secure external sharing setting in SharePoint Online?
The most secure setting is to completely disable external sharing at the tenant level. However, this eliminates collaboration capabilities. For most organizations, Microsoft recommends the “New and existing guests” setting combined with MFA, DLP policies, and strict site-level controls.
How do I prevent external users from downloading files in SharePoint?
When sharing files externally, select “Can view” permission instead of “Can edit.” Then expand the link settings and toggle “Block download” to prevent recipients from downloading, printing, or syncing the file.
Can I restrict external sharing to specific domains only?
Yes. Navigate to SharePoint Admin Center → Policies → Sharing and expand “Advanced settings for external sharing.” You can either allow only specific domains (allowlist) or block specific domains (blocklist).
How can I monitor what external users are doing in SharePoint?
Enable audit logging in the Microsoft Purview compliance portal. Track all external user activities including file views, downloads, edits, and sharing actions through the Unified Audit Log.
What’s the difference between “Anyone with the link” and “Specific people” sharing?
| Link Type | Authentication | Auditable | Risk Level |
|---|---|---|---|
| Anyone with the link | ❌ No | ⚠️ Limited | High |
| People in organization | ✅ Yes | ✅ Full | Low |
| Specific people | ✅ Yes | ✅ Full | Very Low |
How often should I review external user access?
Microsoft recommends quarterly access reviews using Azure AD (Entra ID) Access Reviews. Configure automatic removal of users who no longer require access after 90 days.
Conclusion: Building a Secure External Sharing Foundation
Implementing Microsoft’s best practices for SharePoint external sharing isn’t a one-time configuration—it’s an ongoing security discipline. By applying the layered approach described in this guide, you create a secure foundation that enables collaboration without compromise.
Your Implementation Roadmap:
Week 1
Configure tenant & site sharing
Enable MFA for all guests
Week 2
Deploy DLP policies
Enable Defender Safe Attachments
Week 3
Apply sensitivity labels
Configure conditional access
Week 4
Enable audit logging
Configure access reviews
Ready to Secure Your SharePoint External Sharing?
Get a comprehensive security audit of your current SharePoint external sharing configuration plus an actionable remediation plan.
Schedule Your Free AuditOr download our complete SharePoint Security Checklist PDF
📚 Direct Microsoft Documentation References
| Topic | Microsoft Learn URL |
|---|---|
| Turn External Sharing On or Off | learn.microsoft.com/sharepoint/turn-external-sharing-on-or-off |
| External Sharing Overview | learn.microsoft.com/sharepoint/external-sharing-overview |
| Plan Secure File Collaboration | learn.microsoft.com/microsoft-365/solutions/secure-file-collaboration |
| Manage Guest Access (Azure AD B2B) | learn.microsoft.com/entra/external-id/what-is-b2b |
| Restrict External Sharing by Domain | learn.microsoft.com/sharepoint/restricted-domains-sharing |
| Sensitivity Labels for SharePoint | learn.microsoft.com/microsoft-365/compliance/sensitivity-labels-sharepoint-onedrive-files |
| Defender for Office 365 | learn.microsoft.com/microsoft-365/security/office-365-security/defender-for-office-365 |
| Purview DLP for SharePoint & OneDrive | learn.microsoft.com/microsoft-365/compliance/dlp-sharepoint-onedrive |
About Infinity Technology Solution
We are a Microsoft 365 and SharePoint consulting firm with over 10 years of experience helping enterprises secure their collaboration environments. Our certified experts have implemented Microsoft’s security best practices for organizations across healthcare, legal, and technology sectors.
Published: January 2025 | Last Updated: June 2025


