File Sharing Problems

How to Stop Unwanted OneDrive Verification-Code Emails for Shared Files

Adam DavisAdam Davis Oct 28, 2026 868 views

Question details

The user wants to stop OneDrive from sending verification-code emails to recipients attempting to access shared links.

How to Stop Unwanted OneDrive Verification-Code Emails
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.
Before you start

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.

Solution 1Recommended

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.

1
Locate the file in OneDrive

Navigate to your OneDrive storage online or via the desktop app and locate the file or folder that is triggering the verification emails.

2
Open the Manage access panel

Select the file, click the three-dot (More options) menu next to the file name, and choose 'Manage access' from the dropdown list.

3
Remove the sharing link

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.

4
Check for duplicate files

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.

Manage Access and Remove Existing Sharing Links
Permission Revoked: Once the link is removed, external users will no longer be able to access the file using that link, which will immediately stop the automated verification-code emails.
Free Microsoft Office alternative

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. 1. Download WPS Office: Get the free WPS Office suite from the official website and install it on your device.
  2. 2. Open your document: Launch WPS Office and open your Word, Excel, or PowerPoint file with complete format compatibility.
  3. 3. Share effortlessly: Click the Share button to quickly generate a collaboration link or invite users without complex verification loops.
Free, lightweight, and fast office suite for all platformsFully compatible with Microsoft Word, Excel, and PowerPoint formatsEasy-to-use cloud collaboration and direct file sharingFamiliar user interface ensuring a zero-learning-curve migration
microsoft office alternative - wps office

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.