logo
search
Permission & Access Issues

How to Fix SharePoint User Not in Directory Error for External Users

Maira MehtabMaira Mehtab Sep 28, 2026 869 views

Question details

An external user needs to access a shared file but receives a 'User not in directory' error message when attempting to open a shared PDF from another organization.

Product
Microsoft SharePoint
Device & OS
not provided
Scenario
Accessing a shared PDF or document from an external organization's SharePoint site using an outside email account.
Observed behavior
SharePoint blocks access to the shared document and displays a 'User not in directory' error instead of opening the file.
Before you start

Verify that the email address you are currently logged in with exactly matches the address to which the SharePoint sharing invitation was sent.

Solution 1Recommended

Ask the Administrator to Reconfigure Guest Access

This is the complete solution for establishing proper access, requiring the host organization's administrator to reset your guest permissions in their directory.

The error occurs because your external account has not been properly registered or synced in the host organization's Microsoft Entra directory. Resolving this requires action from their IT administrator.

1
Remove existing guest profiles

Ask the host organization's administrator to remove any existing guest entries for your email address from their Microsoft Entra directory and SharePoint user profiles.

2
Generate a new guest invitation

The administrator must clear relevant browser caches on their end, reinvite your exact email address as a new guest user, and ensure external sharing is enabled.

3
Create a secure sharing link

Have the sender reshare the specific document by selecting the 'People you choose' link option and entering your external email address.

4
Open link in a private window

Right-click your web browser icon, select 'New Incognito Window' or 'InPrivate Window', and paste the new sharing link to prevent previously cached Microsoft credentials from interfering.

Free Microsoft Office alternative

Share and Collaborate on Documents Easily with WPS Office

Avoid complicated directory setups and external permission errors. WPS Office provides a free, lightweight, and easy-to-use alternative to Microsoft Office, allowing seamless document sharing, PDF reading, and excellent cross-platform compatibility.

  1. 1. Download WPS Office: Visit the official WPS website and download the free WPS Office installer for your computer or mobile device.
  2. 2. Install the application: Run the setup file and follow the quick on-screen instructions to install the software.
  3. 3. Open and share files seamlessly: Open your PDFs and Office files locally, and use the built-in sharing features to easily distribute files to external partners without directory syncing.
Fully compatible with Microsoft Office formats (Word, Excel, PowerPoint)Built-in PDF reader and editor for seamless viewing and sharingShare documents instantly via simple web links without complex directory setupsLightweight architecture ensuring fast loading on any device
microsoft office alternative - wps office

Frequently Asked Questions

What does 'User not in directory' mean in SharePoint?

This error means the email account you are using to try and view the file is not registered as an authorized guest user in the host organization's Microsoft Entra directory, which is required for external SharePoint access.

Why do I need to use an Incognito window to open a shared link?

An Incognito or InPrivate window ignores your saved browser cache and active login sessions. This prevents SharePoint from accidentally trying to authenticate you using a different, previously cached Microsoft account.

Can I access a SharePoint link with a Gmail account?

Yes, external email addresses like Gmail can access SharePoint files, but the host organization's administrator must explicitly allow external sharing and properly configure your Gmail account as a guest in their directory.

How should external sharing links be generated in SharePoint?

To minimize access issues, senders should use the 'People you choose' sharing option when generating the link, rather than default link settings, and specifically type in the external user's email address.