Data Protection with Guest Users in Microsoft 365 | Secure Device Access
Nick Ross · · Video and write-up
When it comes to data protection, we usually throw out all of our security protections when external collaboration and guest users are added to the mix. Guest users can:
- Download files locally
- Access sensitive documents on insecure devices
- Do not even need to prove their identity (by default, setting dependent)
In this article, I am going to share the top policy I configure to protect my data for secure guest access that actually requires the user to use only browser based access and prevents them from downloading documents locally.
Considerations with other policies

In a previous blog post (opens in new tab), I talked about the recommended policies to restrict access to only managed devices within the organization. The key thing to note is that if you do not exclude Guest users from those policies, its highly likely they will be blocked. This is dependent on a few different factors such as the types of links being shared with them (Anyone vs New and Existing Guest) and how they are accessing your tenant. (are they using a VPN, are they using CloudPC/AVD, are they using their own personal device). The highest probability is that they are using their own corporate or personal device which would prevent them from collaborating on documents being shared with them, access to shared Teams/document repositories, etc.
If we were to exclude them from the required managed device policy, I do not like to leave their access wide-open, hence the policies we are about to cover.
Requiring Authenticated Guest Access
When users share documents with SharePoint/OneDrive, the default settings in M365 create what is known as an anyone link. Anyone meaning users can share a link to access a corporate document that anyone in the world could access without verifying their identity. Imagine someone being able to access a sensitive corporate document from the outside as quickly as they can access Google search.
Within the SharePoint admin center, you can go to Sharing and see your default policies. Ideally, you can swap this to new or existing guest. With this setting in place, external users will have to register as a guest user within your organization before they can access a document that is shared with them. If this is set to Anyone, our policy to require managed devices would not impact these users but is not preferred from a data protection perspective so the recommendation is to change this setting.

End-User Impact × Just a word of caution here. You really want to be careful in enabling this setting. In most cases this will be a significant change to end-users and you will want to send out communications of the change before turning it on.
- Requires the user to specify email addresses of who they are sharing with.
- External User will need to accept invitation (they will get an email)
Restricting Access on Guest Device
The policy i am going to show you extends our protections further by restricting the Guest user from downloading files shared with them locally on their device. This provides both data exfiltration protection and ensures our corporate documents are not being downloaded to a device that has potentially been compromised with malware/ransomware/etc.
In the SharePoint Admin Center

Follow these steps: IT Admins – SharePoint and OneDrive unmanaged device access controls – SharePoint in Microsoft 365 | Microsoft Learn (opens in new tab)
In Entra
This setting creates two conditional access policies in Entra:
- Restricts Mobile Apps and Desktop client access to devices that are marked as compliant or are hybrid joined in Entra.
- Restricts Browser access for SharePoint Online to use “app enforced restrictions.” This is what is show in the above support article and helps us restrict access on unmanaged devices.

End-User Experience
Guest users will be prevented from opening documents shared with them on their desktop applications and they will see a banner message that prevents them from downloading the document locally.


Conclusion
Be very careful turning this setting on and understand the impacts to the organization. This setting is highly restrictive (not just for Guest) and needs to be communicated appropriately to the organization and end-users before going live.
Harden it once, then know it stays that way.
CloudCapsule scans 300+ Microsoft 365 security controls in about a minute, shows what to fix first, fixes findings at scale, and flags drift the day a setting changes.
No credit card required. Results in about a minute.
Keep reading
Microsoft's NEW Conditional Access Policy Plans Explained
Microsoft just introduced Conditional Access Policy Plans, a new feature in Microsoft Entra, now in preview, that changes how we organize and manage Conditional Access policies.
Microsoft 365 Passkeys Not Working? 6 Common Problems and How to Fix Them
Passkey registration failing in Microsoft 365? Here are six common problems, from missing registration options to Conditional Access loops and lost phones, and how to troubleshoot and fix each one.
ConnectWise / SkyKick Breach: How to Secure Third-Party Applications in Microsoft 365
The ConnectWise Cloud Backup (formerly SkyKick) incident showed how a compromised vendor app can reach Microsoft 365 tenants without passwords or MFA. Here are 4 steps to lock down third-party applications.



