How to Fix SharePoint User Not in Directory Error for External Users
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.
Verify that the email address you are currently logged in with exactly matches the address to which the SharePoint sharing invitation was sent.
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.
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.
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.
Have the sender reshare the specific document by selecting the 'People you choose' link option and entering your external email address.
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.
Request the File as an Email Attachment
If administrative directory changes are not immediately possible, requesting the file directly bypasses SharePoint's external access restrictions entirely.
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. Download WPS Office: Visit the official WPS website and download the free WPS Office installer for your computer or mobile device.
- 2. Install the application: Run the setup file and follow the quick on-screen instructions to install the software.
- 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.

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.




