When a project team member leaves the organization, their OneDrive for Business files often become inaccessible to remaining team members, showing an “Access Denied” error. This occurs because OneDrive is a personal storage space, not a shared library, and ownership does not automatically transfer upon employee departure. This article explains the root cause of the access denied error, provides step-by-step methods to regain access, and covers related failure patterns that project teams commonly encounter.
Key Takeaways: Restoring Access to a Former Employee’s OneDrive
- Microsoft 365 admin center > Users > Active Users > OneDrive tab: Assign site collection admin permissions to a current employee for 30 days after account deletion.
- Microsoft 365 admin center > Setup > Org settings > OneDrive > Notify when: Enable notifications so the IT team is alerted before a OneDrive is deleted.
- OneDrive sync app > Settings > Account > Unlink this PC: Remove stale sync relationships for former employees to clear cached access denied errors.
Why the Access Denied Error Appears for Former Employee OneDrive Files
OneDrive for Business is designed as a personal document library tied to a single user. When that user is deleted from Azure Active Directory or their Microsoft 365 license is removed, the OneDrive site enters a retention period. During this period, the site still exists but only the former employee and the global admin have access by default. Project team members who previously had sharing links or direct permissions lose access because the sharing links break when the user account is disabled.
The access denied error also appears if the project team tries to access the OneDrive via a direct URL that includes the former employee’s user principal name. Even if the team had edit or view permissions before the departure, those permissions are not automatically transferred. The Microsoft 365 retention policy keeps the data for 30 days after account deletion, but no one except the global admin can access it unless a site collection admin is explicitly assigned.
Steps to Regain Access to a Former Employee’s OneDrive
The following steps require a Microsoft 365 global admin or SharePoint admin account. If you are a project team lead without admin rights, contact your IT department with the former employee’s name and the date they left.
- Sign in to the Microsoft 365 admin center
Go to admin.microsoft.com and sign in with a global admin or SharePoint admin account. Open the navigation menu and select Users then Active Users. - Locate the former employee’s account
Use the search box to find the former employee by name or email. If the account has been deleted, click Deleted users in the left pane. Select the user to open their properties panel. - Open the OneDrive tab
In the user properties panel, click the OneDrive tab. This tab appears only if the user had an active OneDrive license. If it is missing, the OneDrive may already be deleted or the user never had a license. - Assign site collection admin permissions
Under Access, click Create link to files or Give access to files. Enter the email address of the project team member who needs access. Select Site collection admin from the permissions dropdown. Click Add and then Save. - Notify the assigned team member
The team member will receive an email with a link to the OneDrive site. They must sign in with their Microsoft 365 account. After signing in, they can browse all files and folders, copy them to a shared team site, or download them locally. - Copy files to a shared location
Open the former employee’s OneDrive in a browser. Select all project-related folders. Click Move to or Copy to and choose a SharePoint document library or a shared OneDrive folder that the entire project team can access.
If the OneDrive Tab Is Missing or the User Is Permanently Deleted
If the user account was permanently deleted beyond the 30-day retention window, the OneDrive site is gone and cannot be recovered. In this case, check with the IT team for any backup or eDiscovery holds. For future prevention, configure a retention policy in the Microsoft Purview compliance portal that preserves OneDrive content for a longer period, such as 90 or 180 days.
If OneDrive Still Shows Access Denied After the Main Fix
Project team members see access denied on shared links
Sharing links created by the former employee are invalid after the account is disabled. The link token is tied to the user’s identity. Even if a site collection admin grants access, old links do not work. Instruct all team members to use the new URL provided in the site collection admin notification email. They should bookmark this URL and delete any old bookmarks.
OneDrive sync app shows access denied errors
If a team member previously synced the former employee’s OneDrive folders using the OneDrive sync app, the sync app may still try to connect to the old location. Open the OneDrive sync app settings. Go to Account and click Unlink this PC. Restart the computer, then sign in to OneDrive again. Do not add the former employee’s OneDrive again. Instead, sync the new shared location where the files were copied.
Access granted but no files appear
This usually means the former employee moved files to another location or deleted them before leaving. Check the OneDrive recycle bin. In the browser, go to the former employee’s OneDrive and click Recycle bin in the left navigation. If files are there, select them and click Restore. If the recycle bin is empty, check the Second-stage recycle bin at the bottom of the recycle bin page.
Granting Access vs Copying Files: When to Use Each Method
| Item | Granting Site Collection Admin Access | Copying Files to a Shared Location |
|---|---|---|
| Description | Assign admin permissions to a current employee on the former employee’s OneDrive | Manually move or copy files from the former employee’s OneDrive to a team SharePoint site |
| Best for | Quick access to review and identify needed files | Long-term shared access for the whole project team |
| Permission duration | Permanent until removed but only one person has admin access | Permanent as long as files exist in the target location |
| Risk | Accidental deletion or modification of original files | Version history and metadata may not transfer |
| When to use | Immediately after employee departure within the 30-day window | After reviewing files and deciding what to keep |
Granting site collection admin access is the fastest way to stop the access denied error. However, it gives full control over the former employee’s entire OneDrive, including personal files not related to the project. Copying only project-related files to a SharePoint document library is safer for long-term collaboration and ensures that no personal data is exposed to the team.
After completing these steps, your project team can access the files that were previously blocked by the access denied error. To prevent this situation in the future, ask your IT team to enable the OneDrive notification setting in the Microsoft 365 admin center under Org settings > OneDrive > Notify when a user’s OneDrive is about to be deleted. Additionally, consider migrating critical project files from personal OneDrive accounts to a shared SharePoint document library while the employee is still active. This eliminates the single point of failure that occurs when a team member leaves.