Troubleshooting
How to Fix SharePoint Access Denied Errors
Match the exact SharePoint Online message to its cause, find out who can fix it, and solve access denied errors, including when the user already has permission.
Written by Osmosys TeamPublished 8 min read

Short answer
Start with the exact message. "You need permission to access this site" or "this site hasn't been shared with you" means the account has no access, and a site owner can grant it. If the user already has permission, the usual causes are being signed in with a different account, or an account that was deleted and re-created, which Microsoft calls a site user ID mismatch. Messages about organizational policies, an untrusted device or a network location come from admin policies, and only an administrator can change them.
On this page
The error you see, and what it usually means
The wording of the message is the best clue. This table matches the messages Microsoft documents for SharePoint Online to their usual cause and to the person who can fix it.
| Message on screen | Usual cause | Who can fix it |
|---|---|---|
| "You need permission to access this site", "Access Denied", "You can't access this item" or "You don't have permission to access this item" | The account has no permission, or one of the causes below | A site owner |
| "Sorry, this site hasn't been shared with you." | No permission, and access requests are turned off | A site owner or site admin |
| "This link is not available to you. Sorry, you are currently signed in as … but that account is not on the list of people this is secured to." | Signed in with a different account from the one the link was shared with | The user |
| "There is a legacy user account in this site with same email." | The account was deleted and re-created: a site user ID mismatch | A SharePoint administrator |
| "User not found in the directory" (for a guest) | The guest accepted the invitation with another account | A site owner, by inviting again |
| "Access Denied. Due to organization policy, you can't access this resource from this untrusted device." | The policy for unmanaged devices | A Microsoft 365 administrator |
| "Due to organizational policies, you can't access this resource from this network location." | A network location (IP address) policy | A Microsoft 365 administrator |
| "Due to organizational policies, you can't access this resource." with no device or location | Information barriers | A Microsoft 365 administrator |
| "This site is read only at the site collection administrator's request." or "403 Forbidden" | The site is locked or was closed by a site policy | A SharePoint administrator |
The steps below follow Microsoft's documentation, which we checked on 26 November 2026. We did not reproduce each error in a test tenant for this article.
Why this happens: the causes Microsoft lists
Most access denied errors come from one of these:
- No permission. The person is not in a group that has access to the site, library, folder or file.
- Unique permissions on one item. "When you assign unique permissions to sites, libraries, and items, those items no longer inherit permissions from their parent site." Sharing a file with someone who lacks access also does this: "SharePoint automatically stops inheritance on the document." Access to the site therefore does not guarantee access to every file in it.
- The wrong account. "The account that's used to access the shared link is different from the account to which the sharing invitation was sent." For example, someone with both a work and a personal Microsoft account may open the link with the wrong one.
- A site user ID mismatch. When an account is deleted and re-created with the same sign-in name, "the new account is assigned a new ID value even though the UPN is the same," but the site still holds the old ID.
- Admin policies. Rules for unmanaged devices, network locations or information barriers block access whatever the permissions say.
- A locked site. An administrator can set a site to read-only or no access.
- Lockdown mode. The "limited-access user permission lockdown mode" feature can cause access denied errors on shared folders.
How to diagnose it, quickest check first
- Read the exact message and find it in the table above.
- Check which account is signed in. Open the link in an InPrivate window in Edge or an Incognito window in Chrome, and sign in with the account that was given access. Microsoft recommends this because it "makes sure that no cached credentials are used." If it works there, the problem is the account or the browser cache.
- Check the person's permissions. A site owner selects Settings, then Site permissions, then Advanced permissions settings. On the ribbon, select Check Permissions, enter the person's name and select Check Now. Review their permissions on the site and the security groups they belong to.
- Check the item itself. If the person can open the site but not one file or folder, that item probably has unique permissions. Open its access settings and compare them with the site's.
- Run Microsoft's diagnostic. A Microsoft 365 administrator can run Check User Access from the admin center. Microsoft says it "validates that the internal/external user has access to the site and checks for known issues that can prevent access." The other diagnostics are Site User ID Mismatch, Locked Site and Access Denied due to organizational policies.
How to fix it
If the person has no permission
A site owner adds them to the right group for the site, usually members to edit or visitors to read, from Settings and Site permissions. For a team site connected to a Microsoft 365 group, adding someone to the group makes them a site member: "Group owners become site owners, and group members become site members."
If one item has unique permissions, either share that item with the person or restore inheritance with Delete unique permissions, so that it follows the site again.
If the person is signed in with the wrong account
They sign out and open the link again with the right account, or use a private window. For a guest who accepted the invitation with another account, Microsoft's fix is: "Determine which account accepted the invitation. Remove the incorrect account and add the correct account. Reinvite the user to the resource."
If the account was deleted and re-created
A SharePoint administrator runs the Site User ID Mismatch diagnostic from the Microsoft 365 admin center. It "detects ID mismatches for users on OneDrive or SharePoint sites and offers to fix the issue." The manual fix is to "remove the old user account from the UserInfo list, and then grant permissions to the new user account." For a person's own OneDrive, Microsoft says the diagnostic "is the only recommended solution," and that the fix "might take approximately 24 hours."
If people cannot even ask for access
When access requests are off, people see "Sorry, this site hasn't been shared with you." with no way to ask. Microsoft's troubleshooting article says a site admin (formerly called a site collection administrator) must turn the feature on: Settings, Site permissions, Change how members can share, then set Allow access requests to On. Pending requests then appear under Settings, Site contents, Access requests.
If the message mentions organizational policies
Site owners cannot change these. A Microsoft 365 administrator reviews the policy the message points to: unmanaged devices, network location or information barriers. Two cautions from Microsoft:
- For network location rules: "Make sure you include your own IP address so you don't lock yourself out." If an administrator is locked out, the Access Denied due to organizational policies diagnostic unlocks them.
- For unmanaged devices: "Plan the use of this control carefully. Otherwise, your users could be faced with unexpected 'Access Denied' errors."
If the site is read-only or locked
A SharePoint administrator checks the site's lock state and unlocks it with PowerShell:
Set-SPOSite -Identity "https://contoso.sharepoint.com/sites/projects" -LockState "Unlock"Replace the address with the site's own. If the site was closed and made read-only by a site closure policy, Microsoft notes that this command does not work, and the policy must be changed instead.
If a shared folder gives access denied
When lockdown mode is on, Microsoft's workarounds are to share individual files instead of folders, to share the whole site, or to deactivate Limited-access user permission lockdown mode under Site collection features if the site does not need it.
If the person got 403 Forbidden just after being given access
Permissions may not have reached every server yet. Microsoft's advice is to clear the browser cache and to "wait 30 minutes before trying to access the file again."
How to verify the fix
- Ask the person to open the site or file in a private window, signed in with the account that has access.
- Run Check Permissions or Check User Access again and confirm the expected access.
- Allow time for policy changes. Microsoft gives up to 24 hours for an unmanaged device policy and up to 15 minutes for network location settings. When external sharing is restricted, "guests typically lose access within one hour."
How to prevent it
- Give access through groups, not one person at a time. Owners, members and visitors, or a Microsoft 365 group, are easier to check and to clean up.
- Keep unique permissions rare. Microsoft supports up to 50,000 items with unique permissions in a list or library, and recommends a general limit of 5,000. Each one is another place to check when access fails.
- Turn on access requests, so people can ask instead of emailing a link around.
- Run the ID mismatch diagnostic whenever an account is deleted and created again, for example for a returning employee.
- Pilot device and location policies with a small group before applying them to everyone.
- Tell guests to accept invitations in a private window with the address the invitation was sent to.
When we plan a SharePoint site, permissions are mapped to groups and owners before any content moves. See our SharePoint development and Microsoft 365 services, and our guide on how to see who viewed a SharePoint document.
Common questions
Why do I get access denied in SharePoint when I have permission?
Permission on the site is not always permission on the item, because files and folders can have unique permissions. If the item is not the issue, check the account you are signed in with, then ask an administrator to run the Check User Access and Site User ID Mismatch diagnostics. Admin policies also block access regardless of permissions.
How do I give someone access to a SharePoint site?
A site owner opens Settings, then Site permissions, and adds the person to the members or visitors group, or shares the site with them. For a single file, use Share on that file.
How long do SharePoint permission changes take?
Microsoft suggests waiting 30 minutes if a 403 error appears just after access was granted, and policy changes can take from 15 minutes to 24 hours, depending on the policy.
Can a site owner fix "due to organizational policies"?
No. Those messages come from policies set by a Microsoft 365 administrator for devices, network locations or information barriers. Send the administrator the full message.
Sources
- Access Denied or You need permission errors in SharePoint Online and OneDrive, Microsoft Learn. Checked 26 November 2026.
- Users without permissions to a SharePoint Online resource can't request access, Microsoft Learn. Checked 26 November 2026.
- Fix site user ID mismatch in SharePoint or OneDrive, Microsoft Learn. Checked 26 November 2026.
- Self-help diagnostics for SharePoint Online and OneDrive administrators, Microsoft Learn. Checked 26 November 2026.
- Error when an external user accepts an invitation by using another account, Microsoft Learn. Checked 26 November 2026.
- Access Denied due to organizational policies, Microsoft Learn. Checked 26 November 2026.
- Control access from unmanaged devices, Microsoft Learn. Checked 26 November 2026.
- Control access to SharePoint and OneDrive data based on network location, Microsoft Learn. Checked 26 November 2026.
- Lock and unlock sites, Microsoft Learn. Checked 26 November 2026.
- SharePoint or OneDrive read-only error messages, Microsoft Learn. Checked 26 November 2026.
- Error 403 Forbidden in OneDrive or SharePoint, Microsoft Learn. Checked 26 November 2026.
- Access Denied error when accessing a shared folder, Microsoft Learn. Checked 26 November 2026.
- Understanding permission levels in SharePoint, Microsoft Learn. Checked 26 November 2026.
- Manage sharing settings for SharePoint and OneDrive, Microsoft Learn. Checked 26 November 2026.
- Set up and manage access requests, Microsoft Support. Checked 26 November 2026.
- Restrictions and limitations in OneDrive and SharePoint, Microsoft Support. Checked 26 November 2026.
From our work
Related articles

How-to guide in Microsoft
How to See Who Viewed a SharePoint Document
Three ways to find out who opened a file in SharePoint Online, what each one really proves, and how we automated it for document reviews.
, 6 min read
