Anonymous sharing links in SharePoint and OneDrive allow anyone with the link to access the shared content — without signing in, without being a member of your tenant, and without any audit trail of who is accessing the file. Once an anonymous link is created, it remains active indefinitely by default unless the creator manually expires it or you enforce an organisation-wide expiration policy.
The practical result is that documents are routinely shared for a specific short-term purpose — sending a proposal to a client, sharing a presentation for a meeting — and then remain accessible to anyone who has the link, months or years later. If the link is forwarded, stored in an email that is later compromised, or accessed by someone who finds it in a browser history, the content is exposed with no authentication requirement.
Enforcing an automatic expiration date on anonymous links ensures that sharing access is time-limited by default, reducing the long tail of forgotten, low-visibility external access that accumulates over time in most SharePoint environments.
Some workflows genuinely require longer-lived anonymous access:
For these cases, specific sites or libraries can be configured to allow longer or unlimited anonymous access, while the organisation-wide default enforces a sensible expiration. The goal is to make time-limited sharing the default, not to prevent all anonymous sharing.
After enforcing this control, review these related areas: