MFA & Verification Issues

Why OneDrive or SharePoint Requests a Verification Code for Shared Files

Elise WilliamsElise Williams Nov 2, 2026 869 views

Question details

The user wants to know why external recipients are prompted to enter a verification code when trying to access files shared via OneDrive or SharePoint.

Why OneDrive or SharePoint Requests a Verification Code for Shared Files
Product
OneDrive and SharePoint
Device & OS
not provided
Scenario
Sharing a file or folder with external recipients who do not have a Microsoft account or an organizational work/school account.
Observed behavior
External users are blocked by a prompt requiring them to input a verification code sent to their email before they can access the shared file.
Before you start

Check your current OneDrive or SharePoint file sharing settings to verify whether the link is restricted to 'Specific people' or accessible by anyone.

Solution 1Recommended

Change Sharing Settings to 'Anyone with the link'

Use this method to allow recipients to view or edit the shared file without needing a verification code or a Microsoft account.

When sharing files using the 'Specific people' option, Microsoft enforces identity verification. If the recipient does not have a recognized Microsoft account, they will be sent a 15-minute verification code. Changing the permission to 'Anyone with the link' bypasses this requirement completely.

1
Locate the file

Open your OneDrive or SharePoint portal and navigate to the file or folder you want to share.

2
Open sharing settings

Click the 'Share' icon next to the file name to open the sharing dialog box.

3
Modify link permissions

Click on the current permission level (e.g., 'People you specify can view') to access the link settings menu.

4
Select 'Anyone with the link'

Choose 'Anyone with the link' from the available options. You can also set an expiration date or password if needed, then click 'Apply'.

5
Copy and share the link

Copy the newly generated link and send it directly to your external recipient.

Change Sharing Settings to 'Anyone with the link'
Security Consideration: Using 'Anyone with the link' allows access without a verification code, but it also means anyone who possesses the link can view the file. Use this option carefully for sensitive data.
Free Microsoft Office alternative

Share and Collaborate Seamlessly with WPS Office

If Microsoft's strict sharing permissions and verification codes are creating friction with your clients or external partners, consider switching to WPS Office. It provides a highly compatible, lightweight alternative with simplified cloud sharing that makes collaboration effortless.

  1. 1. Download and Install: Visit the official WPS Office website to download and install the free software on your device.
  2. 2. Open your Document: Launch WPS Office and open your Word, Excel, or PowerPoint document.
  3. 3. Share with Ease: Click the 'Share' button in the top right corner to generate a direct link for external collaborators without complex verification prompts.
Fully compatible with Microsoft Office formats, including .docx, .xlsx, and .pptx.Generate easy-to-use sharing links without forcing recipients to create accounts or verify codes.Free and lightweight, allowing for quick installation and immediate productivity.Built-in cloud storage and real-time collaboration features for seamless teamwork.
microsoft office alternative - wps office

Frequently Asked Questions

How long is the OneDrive verification code valid?

The verification code sent by OneDrive or SharePoint is valid for 15 minutes. If it expires before the user enters it, they will need to click the prompt to request a new code.

Why does only one person in a group get the verification prompt?

This occurs when the affected person does not have a Microsoft account or a recognized organizational account linked to their email, whereas the other members of the group do. Microsoft requests the code to verify the unrecognized user's identity.

Can I turn off the verification code prompt for specific people?

No, you cannot disable the verification code prompt for users without a Microsoft account if you are using the 'Specific people' sharing option. To bypass the code requirement, you must change the file's sharing setting to 'Anyone with the link'.

Do users with a Microsoft account need a verification code?

Generally, no. If the external recipient signs in using a recognized Microsoft account or a work/school account associated with Microsoft 365, they will bypass the verification code prompt.