logo
search
File Sharing Problems

Fix SharePoint Shared Links Showing User Not Found Error

Maira MehtabMaira Mehtab Sep 22, 2026 869 views

Question details

External recipients are unable to access shared folders in SharePoint due to a directory error upon clicking the email link.

Product
Microsoft SharePoint
Device & OS
not provided
Scenario
An internal user shares a SharePoint folder with an external recipient, who clicks the link in the notification email.
Observed behavior
The external recipient receives a "User not found in directory" message instead of gaining access to the shared folder.
Before you start

Ensure you have SharePoint Site Collection Administrator privileges, as resolving this issue requires modifying root site permissions and directory users.

Solution 1Recommended

Remove the Stale External User from the Site Collection

Deleting the corrupted or stale user profile from the site collection directory allows you to send a fresh sharing invitation that functions correctly.

This error typically occurs when a previous sharing instance leaves an orphaned or mismatched external user profile in the site's directory.

1
Sign in to SharePoint

Sign in to your SharePoint site collection using your administrator credentials.

2
Navigate to Site Settings

Click the gear icon to open Settings, select 'Site information', and then click on 'View all site settings'.

3
Access People and Groups

Under the 'Users and Permissions' section, click on 'People and groups'.

4
Modify the URL

In your web browser's address bar, locate the 'MembershipGroupId=<number>' portion of the URL. Change this to 'MembershipGroupId=0' and press Enter.

5
Delete the User

Locate the affected external user in the list, select their name, click the 'Actions' menu, and choose 'Delete user from site collection'.

6
Share the Folder Again

Navigate back to the folder you wish to share, generate a new sharing link, and send the invitation to the external recipient.

Why modify the URL?: Setting MembershipGroupId to 0 forces SharePoint to display all users stored in the site collection directory, including hidden external guest profiles.
Free Microsoft Office alternative

Experience Hassle-Free Document Sharing with WPS Office

If managing complex SharePoint directory permissions becomes overwhelming, consider WPS Office. It provides an intuitive, lightweight, and highly compatible workspace with seamless cloud collaboration and document sharing, completely bypassing complex directory errors.

  1. 1. Download and Install: Install WPS Office on your PC or mobile device to access a full suite of productivity tools.
  2. 2. Save to WPS Cloud: Create or open your document and save it directly to WPS Cloud for secure online access.
  3. 3. Generate a Share Link: Click the 'Share' button in the top right corner to instantly generate a link and set custom access permissions for anyone.
Easily share documents via secure, direct links without complicated directory management.High compatibility with all standard Microsoft Office file formats (.docx, .xlsx, .pptx).Free and lightweight alternative to Microsoft Office for streamlined productivity.Familiar user interface ensuring a seamless migration and zero learning curve.
QA img-9

Frequently Asked Questions

Why does SharePoint say 'User not found in directory' for external guests?

This happens when there is a stale, orphaned, or corrupted external user profile in the SharePoint site collection directory. When the user tries to access a new sharing link, SharePoint detects a mismatch between their current login and the stored profile.

Do I need admin rights to fix this SharePoint sharing error?

Yes. Resolving this specific directory issue requires Site Collection Administrator privileges, as standard users cannot access the master 'People and groups' list to delete user profiles.

Will deleting the external user from the site collection delete their Microsoft account?

No. Removing the user from your SharePoint site collection only revokes their access and deletes their guest profile from that specific site. It does not affect their actual Microsoft account or data in their own organization.