SharePoint - Restrict a User to a Few Folders

See SharePoint - Anyone Link Sprawl and Resetting Broken Inheritance for my words, all part of the same tale.

The ask

“Can this person only see these three folders?” On a site where everyone gets in through the default Everyone except external users group.

Why you can’t just block them

SharePoint has no deny permission. You can only grant. While “Everyone except external users” has access to the site or library, every user in the tenant gets in through it, and nothing you add on top can take that away.

Fix

  1. Get the list of who should have full access from the client before you touch anything. Don’t guess, because there are usually more sites than you expect.
  2. Create a SharePoint group (or use an M365/security group) for the full-access users, e.g. “Site Full Access”.
  3. On the site/library: break inheritance, remove Everyone except external users, and add the full-access group in its place.
  4. On each folder the restricted user should have: Manage access > grant them access directly.
  5. Test signed in as (or with) the restricted user: the allowed folders open, and nothing else shows.

Gotchas

  • Check the other sites. If they also run on “Everyone except external users”, the restricted user can still get in that way.
  • Write down the full-access group’s name and who maintains it. New starters now have to be added to that group, or they’ll be locked out of the site.
  • Bulk inheritance resets wipe this. Running something like a library-wide “reset to inherit” will remove the folder-level grants too. Exclude those folders, or re-grant afterwards. See SharePoint - Anyone Link Sprawl and Resetting Broken Inheritance.
  • This is a patch. If permissions are a mess across the whole site, the real fix is a ground-up rebuild (see SharePoint - One Site Per Group and Sync Folder Naming).

Types of SharePoint Sites