Fix SharePoint Shared Links Showing User Not Found Error
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.
Ensure you have SharePoint Site Collection Administrator privileges, as resolving this issue requires modifying root site permissions and directory users.
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.
Sign in to your SharePoint site collection using your administrator credentials.
Click the gear icon to open Settings, select 'Site information', and then click on 'View all site settings'.
Under the 'Users and Permissions' section, click on 'People and groups'.
In your web browser's address bar, locate the 'MembershipGroupId=<number>' portion of the URL. Change this to 'MembershipGroupId=0' and press Enter.
Locate the affected external user in the list, select their name, click the 'Actions' menu, and choose 'Delete user from site collection'.
Navigate back to the folder you wish to share, generate a new sharing link, and send the invitation to the external recipient.
Troubleshoot the Recipient's Browser and Link Access
Verify if the issue is caused by browser caching on the recipient's device or if the error is isolated to a specific folder.
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. Download and Install: Install WPS Office on your PC or mobile device to access a full suite of productivity tools.
- 2. Save to WPS Cloud: Create or open your document and save it directly to WPS Cloud for secure online access.
- 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.

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.




