How to Stop Unwanted OneDrive Verification-Code Emails for Shared Files
Question details
The user wants to stop OneDrive from sending verification-code emails to recipients attempting to access shared links.

- Product
- Microsoft OneDrive
- Device & OS
- not provided
- Scenario
- Sharing files with external recipients using restricted links or when identity verification is triggered.
- Observed behavior
- OneDrive continuously sends verification-code messages to recipients accessing the shared link, even if the file is believed to be deleted or permissions supposedly revoked.
Ensure you are logged into the Microsoft account that owns the shared OneDrive file, as only the file owner or someone with full editing permissions can modify access links and revoke sharing settings.
Manage Access and Remove Existing Sharing Links
Revoke the current sharing permissions that are triggering the verification codes by managing the file's access settings directly in OneDrive.
OneDrive sends verification codes when a file is shared with 'Specific people' who do not have a recognized Microsoft account. Simply deleting a document may not remove the permissions from an existing link if a duplicate or copy remains in a shared location.
Navigate to your OneDrive storage online or via the desktop app and locate the file or folder that is triggering the verification emails.
Select the file, click the three-dot (More options) menu next to the file name, and choose 'Manage access' from the dropdown list.
In the Manage access panel, locate the specific sharing link or individual permissions causing the issue. Click the trash can icon or the 'Stop sharing' button to revoke access.
Check whether the original file, a duplicate, or another shared location is still available in your OneDrive, and repeat the access removal process for those items if necessary.

Create a New Link with an Open Access Method
If the recipient still needs access to the file without having to enter verification codes, create a less restrictive sharing link.
Share Documents Seamlessly with WPS Office
Tired of complicated sharing permissions and verification code loops in Microsoft Office? WPS Office offers a lightweight, free alternative, providing seamless document editing, saving, and straightforward file sharing without unnecessary hurdles.
- 1. Download WPS Office: Get the free WPS Office suite from the official website and install it on your device.
- 2. Open your document: Launch WPS Office and open your Word, Excel, or PowerPoint file with complete format compatibility.
- 3. Share effortlessly: Click the Share button to quickly generate a collaboration link or invite users without complex verification loops.

Frequently Asked Questions
Why does OneDrive require a verification code for shared files?
OneDrive sends a verification code when you share a file using the 'Specific people' option and the recipient doesn't have a recognized Microsoft account. The system uses this code to verify their identity and ensure the document remains secure.
Does deleting a shared file stop the verification emails?
Not always. If a duplicate or a copy of the file still exists in another shared location within your OneDrive, the original sharing permissions might still be active and trigger emails. You must explicitly remove the link via the 'Manage access' panel.
How can I share a OneDrive file without triggering an email code?
To bypass the verification code requirement, change your sharing link settings from 'Specific people' to 'Anyone with the link' (if your organization's security policies permit it). This grants access to anyone who clicks the link without requiring identity verification.




