How to Fix OneDrive Access Denied Error (Wrong Account Signed In)
Question details
The user is unable to access their files stored in OneDrive due to an Access Denied error, likely caused by being signed into the wrong account.

- Product
- Microsoft OneDrive
- Device & OS
- not provided
- Scenario
- Attempting to open, view, or recover files stored in OneDrive when an incorrect account, such as a Gmail address, is actively signed in.
- Observed behavior
- An Access Denied message appears, stating that the currently signed-in account does not have permission to access the files.
Make sure you have the correct email addresses and passwords ready for all your personal, work, or school Microsoft accounts.
Sign In with the Correct Microsoft Account
Switching to the Microsoft account that actually owns or has been granted access to the files will resolve the permission issue.
Often, browsers or Office applications automatically sign you in with a previously saved account (like a personal Gmail address). If this account differs from the one associated with the OneDrive files, access will be blocked.
Determine whether the files you are trying to access belong to a personal Microsoft account or a work/school account.
On the Access Denied page or within your OneDrive/Office portal, click on your profile picture or account initials in the top right corner and select 'Sign out'.
Enter the email address and password for the Microsoft account that owns the files. Do not use the unauthorized Gmail address.
Once signed in successfully, click the original file link or navigate to your OneDrive folder to open your documents.

Use an Incognito or Private Browsing Window
Opening the file link in a private window bypasses cached browser logins, forcing a fresh sign-in prompt.
Try WPS Office for Seamless File Management
If you frequently encounter login conflicts or access issues with Microsoft Office and OneDrive, consider switching to WPS Office. It provides a lightweight, highly compatible alternative for creating, editing, and managing your documents without complex account access hurdles.

Frequently Asked Questions
Why am I getting an Access Denied error in OneDrive with my Gmail account?
If your Gmail account is not registered as a Microsoft account with permissions to view the file, or if the file owner hasn't explicitly shared it with that Gmail address, OneDrive will block access to protect the file's privacy.
How can I request access to a OneDrive file?
When you encounter the Access Denied page, there is usually a button to 'Request Access'. Clicking this will send an email notification to the file owner, allowing them to grant your current account permission to view or edit the document.
Can I access a shared OneDrive file without a Microsoft account?
Yes, but only if the file owner shares the document using an 'Anyone with the link' setting. This allows you to view or edit it anonymously without signing in. If specific user permissions were set, a proper login is required.
What if I forgot which account owns my OneDrive files?
Try searching your various email inboxes for past OneDrive sharing invitations, Microsoft subscription receipts, or file modification notifications. This can help you identify which email address is linked to the correct Microsoft account.




