File Sharing Problems

How to Stop OneDrive Verification Codes for Shared Documents

Camila MilosovichCamila Milosovich Oct 7, 2026 870 views

Question details

Users want to disable the repeated one-time PIN verification required when recipients open a shared OneDrive document, while still ensuring the right people have access.

How to Stop OneDrive Verification Codes for Shared Documents
Product
Microsoft OneDrive
Device & OS
not provided
Scenario
Sharing a document with management users or external recipients via a link.
Observed behavior
Recipients are prompted to enter a verification code (one-time PIN) every time they attempt to open the shared document.
Before you start

Ensure you have the necessary permissions to manage sharing settings for the document and verify the Microsoft account status of your recipients.

Solution 1Recommended

Modify Link Settings to 'Anyone with the link'

Changing the sharing link type to 'Anyone with the link' typically bypasses the need for recipients to verify their identity with a one-time PIN.

When you use the 'Specific people' sharing option, OneDrive strictly verifies identity. If the recipient does not have a Microsoft account linked to the email provided, they will be forced to use a one-time PIN every time they open the file. Switching to 'Anyone with the link' removes this hurdle.

1
Access file sharing options

Select the file in OneDrive, right-click, and select the 'Share' icon.

2
Open link settings

Click on the current link settings description (for example, 'People you specify can view').

3
Change audience

Under the Link settings menu, select 'Anyone with the link'.

4
Apply and share

Click 'Apply', then copy the new link to share with your recipients. Test it in a private browser window to confirm it works without a PIN.

Modify Link Settings to 'Anyone with the link'
Security Consideration: Using the 'Anyone' link means anyone with the URL can access the file. Ensure this is acceptable for your document's confidentiality.
Free Microsoft Office alternative

Experience Seamless File Sharing with WPS Office

Tired of dealing with complex sharing permissions and repeated verification codes? WPS Office provides a lightweight, highly compatible alternative with built-in cloud sharing that makes collaboration effortless without compromising on compatibility.

  1. 1. Open your file in WPS Office: Launch WPS Office and open the document you wish to share.
  2. 2. Click Share: Click the 'Share' button in the top right corner of the workspace.
  3. 3. Customize and create link: Set your desired permissions (view or edit) and copy the sharing link to send to collaborators.
Share files easily via direct links with customizable expiration dates and password protection.High compatibility with Microsoft Word, Excel, and PowerPoint formats.Free, lightweight, and features a familiar user interface for a smooth transition.
microsoft office alternative - wps office

Frequently Asked Questions

Why does OneDrive ask for a verification code every time?

When you share a document using the 'Specific people' option and the recipient doesn't have a Microsoft account (or isn't signed in), OneDrive sends a one-time PIN to their email to verify their identity before granting access.

Can I remove the verification code without changing the link type?

No, the verification code is a built-in security feature tied to the 'Specific people' sharing setting for external users. To bypass it, you must either use an 'Anyone with the link' setting or ensure the recipient signs in with a linked Microsoft account.

Are 'Anyone with the link' shares secure?

Links set to 'Anyone' are inherently less secure because they can be forwarded to others who can also access the file. You can increase security by setting an expiration date or adding a password to the link.