File Sharing Problems

Fix a Missing OneDrive Sharing Verification Code for Gmail

Khadija KhanKhadija Khan Nov 22, 2026 868 views

Question details

An external Gmail recipient needs a verification code to access a shared OneDrive file.

Fix a Missing OneDrive Sharing Verification Code for Gmail
Product
Microsoft OneDrive
Device & OS
not provided
Scenario
A file owner shares a OneDrive file with an external recipient who uses Gmail.
Observed behavior
The recipient receives the sharing invitation but not the verification code, despite requesting it repeatedly.
Before you start

Confirm that the sharing invitation was sent to the recipient's correct Gmail address and that they can open the invitation. The recipient should have access to Gmail, and the file owner may need permission to change the sharing link.

Solution 1Recommended

Check Gmail filtering and request a new verification code

Use this approach when the sharing invitation arrives but the verification message may be filtered or rejected.

1
Search Gmail

In Gmail, search for the verification message, including a search for from:no-reply@sharepointonline.com. Check Spam, Promotions, Social, and any other filtered folders.

2
Mark the message as safe

If you find the message in Spam, open it and click Not spam. Check any Gmail filters that might delete or redirect messages from the sender.

3
Add the sender to contacts

In Google Contacts, add no-reply@sharepointonline.com as a contact. Alternatively, in Gmail search options, create a filter for the sender and select Never send it to Spam.

4
Request a fresh code

Return to the OneDrive sharing invitation, open the file link, and request a new verification code. Use the most recently received code.

5
Escalate delivery issues

If no message arrives, ask the file owner's Microsoft 365 administrator to check external sharing settings and investigate email delivery. If the Gmail account is managed by an organization, ask its administrator to check mail filtering or rejection.

Contact settings are not a guarantee: Adding the sender to contacts or creating a Gmail filter can help with filtering, but it may not resolve a message rejected before it reaches Gmail.
Free Microsoft Office alternative

Work with Shared Office Files in WPS Office

WPS Office is a free, lightweight alternative with a familiar interface and support for Microsoft Office formats, making it easy to continue working with files after you receive them. It does not fix OneDrive verification or Gmail delivery issues.

Open and edit shared documents, spreadsheets, and presentations after downloading themCompatible with Microsoft Office formats including DOCX, XLSX, and PPTXA familiar interface helps ease the move from Microsoft OfficeFree and lightweight for everyday office work
microsoft office alternative - wps office

Frequently Asked Questions

Where should I look for the OneDrive verification email in Gmail?

Search Gmail for from:no-reply@sharepointonline.com and check Spam, Promotions, Social, and other filtered folders. If the message is in Spam, open it and click Not spam.

Will adding the SharePoint sender to contacts guarantee delivery?

No. Add no-reply@sharepointonline.com in Google Contacts or create a Gmail filter that selects Never send it to Spam, then request a new code. These steps may help with filtering but cannot guarantee delivery.

Can a recipient open the file without a verification code?

The file owner may be able to create an Anyone link through OneDrive's Share link settings. Anyone links may be disabled by organizational policy, and anyone with the link may be able to access the file.

What should I do if the code still does not arrive?

Confirm the invitation was sent to the correct Gmail address, request a fresh code, and check Gmail again. If it is still missing, ask the file owner's Microsoft 365 administrator and, for a managed Gmail account, the recipient's mail administrator to investigate.