Navigation in OneDrive on the Web is not available

In a normal situation, a user will find the following navigation on the left side of their OneDrive.

Navigation in OneDrive
Navigation in OneDrive

Two problems can occur in OneDrive in rare cases.


1) Account has no access to OneDrive
Zugriff verweigert für das eigene Konto
Access denied for the owner account

This case can occur if organizations use a UserPrincipalName multiple times for accounts after user departure. The UserPrincipalName is the login name of an account.
In SharePoint Site Collections it can occur more often, in OneDrive Site Collections rather rarely. I published an article about this situation in May.

I triggered the case shown above for simulation purposes.
I wrote a PowerShell script to validate SharePoint user accounts for these cases. The result shows that John Smith’s account in OneDrive has a conflict with the account in the SharePoint User Profile Service (UPS). The SIDs do not match. John Smith therefore has no access to his OneDrive.

Fehlerhafte SIDs führen zum Konflikt
Incorrect SIDs lead to the conflict

My script removes the incorrect (old) account from the site collection and I have added John Smith as the site collection admin again.


2) Navigation in OneDrive on the Web is not available

John Smith has access to his OneDrive again.
John can sync the OneDrive locally, create, share, delete files, practically everything someone can do with their OneDrive. However, John is missing the navigation on the left side.

Navigation in eingeschränkter Form
Navigation in limited form

This can be caused by a rare error after a user returns to the organization and the last UserPrincipalName is used again.
I use PowerShell to perform a check of the OneDrive Site Collection. A Site Collection Admin is the owner of the Site Collection in PowerShell. I use PowerShell to show the owner.

Owner = Site Collection Admin
Owner = Site Collection Admin

It’s not recognizable, but it may still be the deleted account. Overwrite the value with the new account. This method resets all Site Collection Admins in OneDrive.

PowerShell
Set-SPOSite -Identity <OneDriveSiteUrl> -Owner johns@demo1.tam365.com


The navigation is back to John Smith within a minute. You may need to refresh your browser cache with CTRL + F5.
OneDrive is now fully configured for John.

Navigation in OneDrive wieder verfügbar
Navigation in OneDrive is available again

Practically, this can only happen under specific circumstances. SharePoint creates a new OneDrive site collection with a sequential number for new accounts, even if an UserPrincipalName is used multiple times.

Share
Avatar photo

Tobias Asböck

Tobias is a Senior System Engineer with around ten years of professional experience with Microsoft 365 products such as SharePoint Online, OneDrive for Business, Teams Collaboration, Entra ID, Information Protection, Universal Print, and Microsoft 365 Licensing. He also has 15+ years of experience planning, administering, and operating SharePoint Server environments. Tobias is a PowerShell Scripter with certifications for Microsoft 365 products. In his spare time, Tobias is busy with updates in the Microsoft 365 world or on the road with his road bike and other sports activities. If you have additional questions, please contact me via LinkedIn or [email protected].

Leave a Reply

Your email address will not be published. Required fields are marked *