Follow these steps to resolve the OneDrive "access denied" / "something went wrong" issue when trying to view or share files:
- Verify that the account has permission to the OneDrive site and files:
- In the Microsoft 365 admin or SharePoint admin environment, determine what permission level the user should have on the OneDrive site.
- Open the OneDrive site’s Site permissions page, use Check Permissions, enter the user name, and select Check Now.
- If no permissions or insufficient permissions are shown, grant the appropriate permissions to the site or specific files/folders.
- If the user still gets "Access Denied" or similar errors after permissions are granted:
- Remove the user from the OneDrive/SharePoint site.
- Re‑add the user and share the file or folder again so that a fresh permission entry is created.
- If the problem occurs when opening a shared link:
- Remove the affected user from the site and then share the file or folder again so a new sharing link and permission set are created.
- If the user cannot access their own OneDrive:
- Check for a possible site user ID mismatch (for example, if the account was deleted and recreated with the same UPN). If a new UPN exists, delete the new UPN in Azure AD and restore the original UPN, or use the automated "Fix site user ID mismatch" solution referenced in the documentation.
- If OneDrive or SharePoint appears completely inaccessible for the user:
- Confirm that the user has been granted at least basic access to the site or file; if not, assign the required permissions.
- If errors persist after permissions are confirmed, follow the same access-denied troubleshooting steps above.
If these steps do not resolve the issue, an administrator should run the "Check User Access" diagnostic (where available) or open a support request with Microsoft 365 support, providing the correlation ID shown on the error page.
References: