logo
search
Permission & Access Issues

How to Fix OneDrive Access Denied Error (Wrong Account Signed In)

John WilsonJohn Wilson Sep 30, 2026 868 views

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.

How to Fix OneDrive Access Denied Error
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.
Before you start

Make sure you have the correct email addresses and passwords ready for all your personal, work, or school Microsoft accounts.

Solution 1Recommended

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.

1
Identify the file owner account

Determine whether the files you are trying to access belong to a personal Microsoft account or a work/school account.

2
Sign out of the current 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'.

3
Sign in with the authorized account

Enter the email address and password for the Microsoft account that owns the files. Do not use the unauthorized Gmail address.

4
Retry accessing the files

Once signed in successfully, click the original file link or navigate to your OneDrive folder to open your documents.

Sign In with the Correct Microsoft Account
Access Restored: Logging in with the correct credentials will immediately grant you access to your files without triggering the error prompt.
Free Microsoft Office alternative

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.

Fully compatible with Microsoft Word, Excel, and PowerPoint file formats.Includes built-in WPS Cloud storage to securely back up and access your files without login confusion.Lightweight installation with a familiar, user-friendly interface.Free to use for essential document, spreadsheet, and presentation editing.
microsoft office alternative - wps office

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.