Fix a Missing OneDrive Sharing Verification Code for Gmail
Question details
An external Gmail recipient needs a verification code to access a shared OneDrive file.

- 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.
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.
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.
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.
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.
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.
Return to the OneDrive sharing invitation, open the file link, and request a new verification code. Use the most recently received code.
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.
Create an Anyone link if external sharing policies allow it
Use a less restrictive link when the file owner is permitted to share the file without requiring the recipient to verify their identity.
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.

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.




