Permission & Access Issues

Fix “User Not in Directory” for a SharePoint Anyone Link

Algirdas JasaitisAlgirdas Jasaitis Nov 20, 2026 869 views

Question details

The user needs external recipients to access a SharePoint file through an Anyone link without belonging to the organization's directory.

Fix “User Not in Directory” for a SharePoint Anyone Link
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.
Before you start

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.

Solution 1Recommended

Create and test a new SharePoint Anyone link

Use this method to verify the link type and rule out a cached Microsoft 365 session.

1
Open the sharing settings

In SharePoint, select the file and choose Share. Open the link settings to see who can use the link.

2
Select Anyone

Choose Anyone with the link, set the appropriate viewing or editing permission, and select Apply.

3
Copy the new link

Select Copy link and send that link to the recipient rather than copying the browser address.

4
Test in a private window

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.

Create and test a new SharePoint Anyone link
Anyone links can be forwarded: Anyone who obtains the link may be able to use it, so choose this option only when anonymous sharing is appropriate for the file.
Free Microsoft Office alternative

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.

Open and edit documents, spreadsheets, and presentations in a familiar interfaceWork with Microsoft Office formats including DOCX, XLSX, and PPTXUse a free, lightweight office suiteContinue working with Office files received through an approved sharing method
microsoft office alternative - wps office

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.