You sign in to OneDrive for Business and see Access Denied on your own files. This is a different error from a shared file permission issue. The problem is almost always caused by the site being locked, the user license being removed, or the admin having deleted your OneDrive site. This article explains the three root causes and gives you the exact steps to restore access.
Key Takeaways: Restoring Access to Your Own OneDrive
- Microsoft 365 admin center > Users > Active Users > Licenses and Apps: Verify your OneDrive license is assigned and not expired
- SharePoint admin center > Sites > Active Sites > Your OneDrive URL: Check if the site is locked or has a storage quota issue
- OneDrive admin center > Restore OneDrive: Restore a deleted OneDrive site within 30 days of deletion
Why You See Access Denied on Your Own OneDrive
OneDrive for Business stores your files in a SharePoint site collection created specifically for your user account. Each user gets one site with a URL like https://contoso-my.sharepoint.com/personal/username_contoso_com. Access is granted automatically when your account is created and a OneDrive license is assigned.
The Access Denied error appears when that automatic permission breaks. Three scenarios cause this:
1. The OneDrive Site Is Locked or Deleted
An admin can lock a OneDrive site manually through the SharePoint admin center. The site can also be locked automatically when your account is deleted or when the storage quota is exceeded. If the site is deleted, you have 30 days to restore it before the data is permanently removed.
2. Your License or Account Status Changed
If your Microsoft 365 license was removed, expired, or reassigned, the OneDrive service stops granting access. The same happens if your user account is disabled or soft-deleted. The site still exists, but the security token that proves you own it is invalid.
3. The Site Permission Is Corrupted
Rarely, the permission entry that maps your user account to the OneDrive site owner role becomes corrupted during a tenant migration, a directory sync issue, or a failed admin action. You still have a valid license and the site is not locked, but the site thinks you are a guest.
Steps to Fix Access Denied to Your Own OneDrive
Follow these steps in order. Stop when access is restored.
Step 1: Verify Your License and Account Status
- Sign in to the Microsoft 365 admin center
Go tohttps://admin.microsoft.comand sign in as a global admin or user admin. - Go to Users > Active Users
Find your user account in the list. Click the display name to open the details panel. - Check the Licenses and Apps tab
Confirm that a license that includes OneDrive for Business such as Microsoft 365 Business Basic, Standard, or Premium is assigned. If the license is not assigned, click Edit, select the license, and save. - Check the Account tab
Verify that Sign-in is enabled. If it is blocked, click Block sign-in, then unblock it.
Step 2: Check the OneDrive Site Status
- Open the SharePoint admin center
Go tohttps://admin.microsoft.com/SharePoint. - Go to Sites > Active Sites
Search for your OneDrive site using your display name or email address. The site URL starts withhttps://[tenant]-my.sharepoint.com/personal/. - Check the Status column
If the site shows Locked, click the site name, then select Unlock from the ribbon. If the site shows Deleted, proceed to Step 3. - Check the Storage Quota
In the site details panel, look at Storage limit and Storage used. If storage is exceeded, increase the quota or delete files through another method.
Step 3: Restore a Deleted OneDrive Site
- Go to the SharePoint admin center > Sites > Deleted Sites
This page shows all deleted site collections including OneDrive sites. - Find your OneDrive site
Search by your email address. If you see the site, select it and click Restore. The site appears in Active Sites after a few minutes. - If the site is not listed
The 30-day retention period has passed. Your data is permanently deleted. Create a new OneDrive site by assigning a license again and signing in tohttps://onedrive.live.comwith your work account.
Step 4: Reset the Site Permission
- In the SharePoint admin center, go to Sites > Active Sites
Select your OneDrive site by clicking the checkbox. - Click Permissions in the ribbon
Click Manage administrators. - Verify you are listed as a site collection administrator
If your name is missing, add your user account as a site collection admin and save. - If your name is already there
Remove your account, save, then add it again. This forces SharePoint to rebuild the permission token.
If You Still Get Access Denied After the Main Fix
OneDrive Shows Access Denied Only on Mobile or Browser
Clear your browser cache and cookies. In Microsoft Edge, go to Settings > Privacy, search, and services > Clear browsing data. Select Cached images and files and Cookies and other site data, then click Clear now. For mobile, uninstall and reinstall the OneDrive app.
Access Denied When Using the OneDrive Sync Client
The sync client may be using stale credentials. Open Credential Manager in Windows. Go to Windows Credentials. Find any entry under Generic Credentials that contains OneDrive Cached Credential or MicrosoftOffice. Click the arrow, then Remove. Restart OneDrive and sign in again.
Access Denied After a Tenant Migration or Domain Change
Your user principal name may have changed. In the Microsoft 365 admin center, go to Users > Active Users and edit your username. If the UPN changed, update the OneDrive site URL by running the SharePoint Online Management Shell command Set-SPOSite -Identity "https://[tenant]-my.sharepoint.com/personal/oldalias_tenant_com" -Owner "newalias@tenant.com". Run this from an elevated PowerShell session after installing the SharePoint Online Management Shell module.
OneDrive Site Locked vs License Removed vs Site Deleted: Key Differences
| Item | Site Locked | License Removed | Site Deleted |
|---|---|---|---|
| Error message | Access Denied or Site Locked | Access Denied or No License | Access Denied or Site Not Found |
| Can admin see the site? | Yes, in Active Sites | Yes, in Active Sites | Only in Deleted Sites for 30 days |
| Fix method | Unlock in SharePoint admin center | Reassign license in Microsoft 365 admin center | Restore from Deleted Sites within 30 days |
| Data loss risk | None | None | Permanent after 30 days |
You now know the three causes of the Access Denied error on your own OneDrive site. Start by verifying your license and account status, then check if the site is locked or deleted. If the problem persists, reset the site permission by removing and re-adding yourself as a site collection administrator. As a preventive step, ask your admin to enable OneDrive site retention policies in the SharePoint admin center so deleted sites are preserved for longer than 30 days.