Fix “User Not in Directory” for a SharePoint Anyone Link
Question details
The user needs external recipients to access a SharePoint file through an Anyone link without belonging to the organization's directory.

- Product
- Microsoft SharePoint
- Device & OS
- not provided
- Scenario
- An external recipient opens a file link intended to allow access to anyone with the link.
- Observed behavior
- The recipient sees a “User not in directory” message instead of accessing the file.
Confirm that you have permission to share the file and can contact a SharePoint administrator if sharing settings need to change. Check whether the error affects one recipient, all external recipients, or only one file.
Create and test a new SharePoint Anyone link
Use this method to verify the link type and rule out a cached Microsoft 365 session.
In SharePoint, select the file and choose Share. Open the link settings to see who can use the link.
Choose Anyone with the link, set the appropriate viewing or editing permission, and select Apply.
Select Copy link and send that link to the recipient rather than copying the browser address.
Open the copied link in a private or incognito browser window with no existing Microsoft 365 session. Ask the recipient to test it the same way.

Check SharePoint external-sharing policies
Ask an administrator to review these settings if Anyone is unavailable or the problem affects multiple external recipients.
Work with Office files in WPS Office
WPS Office is a free, lightweight alternative with a familiar interface for working with Office files. Its format compatibility makes it easy to move existing documents into your workflow, though it cannot change SharePoint sharing policies or fix directory access errors.

Frequently Asked Questions
Why does an Anyone link ask a recipient to sign in?
The link may not actually be an Anyone link, or a cached Microsoft 365 session may be involved. Check Share > link settings, create a new Anyone link, and test it in a private browser window.
What if Anyone with the link is unavailable?
Ask a SharePoint administrator to check Policies > Sharing in the SharePoint admin center and the affected site's sharing settings under Sites > Active sites. The organization or site may prohibit anonymous links.
Does an Anyone link require the recipient to be in the tenant directory?
No. A working Anyone link is intended to allow access without requiring the recipient to belong to the tenant directory. The file's link settings and applicable sharing policies must permit that access.
What should I check if only one recipient sees the error?
Ask the recipient to open the copied sharing link in a private or incognito window. If that works, an existing browser session may be contributing to the problem.




