ShareFlow
All articles

News

SharePoint hero link: what changes when you share files

The SharePoint hero link (MC1454378) gives every file one sharing link. Audiences, expiration, DefaultMainLinkScope, old links and traps for admins.

Valentin Laurent7 min read
Share

The SharePoint hero link is the new main sharing link in SharePoint and OneDrive: every file and folder has one, and you change its audience without creating another URL. By default, it gives access to nobody beyond the people who already have it. Message MC1454378 (roadmap 492622) plans the end of the worldwide rollout for late November 2026. One thing to check now: your default sharing link settings and your expiration policies do not apply to the hero link.

Until now, sharing a file with two different settings meant two links. Send an organization link to a partner by mistake and it would not open: you had to create another one and send it again.

Now, two colleagues who copy the main link of the same file get the same link. If a colleague can't open it, you widen the audience and the link they already have starts working. The reverse is true too: narrowing the audience cuts off people who only had access through that link.

Two-column diagram. Before: three links and three URLs for the organization, anyone and specific people. After: a single hero link with three audiences, only people added by default, people in your organization, and anyone if policy allows it. Below, other links keep separate settings
One URL per item, and Other links that keep their own settings

The Share dialog has two areas to tell apart. Add people grants direct access to named people. File link settings decides what the link is worth for everybody else.

Share dialog: Add people field, list of people with access including one address tagged External, then File link settings with the menu open on Anyone, People in Contoso and Only people added, which is checked, and the Copy link button
Choosing the hero link audience (screenshot: Microsoft Support)
AudienceWho can open the linkWhen to use it
Only people addedPeople who already have access: direct, group, folder or siteBy default, and for anything sensitive
People in your organizationSigned-in members who have the link, not guestsAn internal document with no particular confidentiality
AnyoneWhoever has the link, without signing inA document you would accept to see forwarded

For a specific partner, add their address under Add people. The organization link doesn't work for guests, and Anyone doesn't tell you who opened the document.

The first time you widen a link, the permission is Can view. Users can pick Can edit, Can't download or, depending on the file type, Can review instead. Administrators cannot change that starting point.

One old rule still holds: the widest access wins. Setting someone to view has no effect if a group, the parent folder or another link lets them edit.

Links already sent keep working. They appear under Other links, together with links inherited from a parent folder. Changing the hero link neither edits nor removes them.

That is the main trap in an audit. A file can show "Only people added" and still be open to the whole organization through a link created two years ago. Always look at both areas.

The second trap is expiration:

  • the hero link has no expiration date and no password;
  • existing expiration policies and default link settings only govern legacy links, according to MC1454378;
  • for a temporary link, create an additional link (gear icon, then Create new sharing link).

In other words, if you enforce 30 days on Anyone links, a hero link opened to Anyone doesn't inherit that limit: it stays open until somebody closes it.

How do you set the default audience in PowerShell?

The parameter is DefaultMainLinkScope. It only sets the starting value: users can still widen the audience when the sharing policy allows it. The effective value is OnlyPeopleAdded as long as you change nothing.

With an up-to-date SharePoint Online Management Shell:

Connect-SPOService -Url "https://contoso-admin.sharepoint.com"

# Read the setting of one site
Get-SPOSite -Identity "https://contoso.sharepoint.com/sites/Intranet" | Select-Object Url, DefaultMainLinkScope

# Internal news site: the link works for the whole organization
Set-SPOSite -Identity "https://contoso.sharepoint.com/sites/Intranet" -DefaultMainLinkScope Organization

# Back to the most restrictive setting
Set-SPOSite -Identity "https://contoso.sharepoint.com/sites/Intranet" -DefaultMainLinkScope OnlyPeopleAdded

PnP PowerShell has the same parameter on Set-PnPTenantSite. Two limits to know:

  • the official sources differ: MC1454378 lists two values (OnlyPeopleAdded and Organization), while the Learn page for Set-SPOSite adds a third, Anyone, available only if anonymous links are allowed;
  • the parameter targets items at the root of document libraries. Inside a folder, a file follows the folder's link until its own link is changed.

Since this setting forbids nothing, the real protection against Anyone links is still the site's sharing capability. This script lists the SharePoint sites that still allow them (add -IncludePersonalSite $true to Get-SPOSite to include OneDrive):

Get-SPOSite -Limit All |
    Where-Object { $_.SharingCapability -eq "ExternalUserAndGuestSharing" } |
    Select-Object Url, Title, SharingCapability |
    Export-Csv -Path ".\sites-anyone-links.csv" -NoTypeInformation -Encoding utf8

For a site that doesn't need them, Set-SPOSite -Identity <url> -SharingCapability ExternalUserSharingOnly keeps authenticated guests and removes Anyone. Check with the owner first whether anonymous links are still in use.

How do you stop sharing a file?

Several actions look alike but don't do the same thing.

Your goalActionEffect
Remove one personX next to their nameRemoves that access, not access from a group or link
Close the hero linkAudience Only people addedThe link grants nothing, the URL doesn't change
Remove an old linkOther links, then XOnly that link stops working
Invalidate a link sent to the wrong placeGear icon, Reset LinkNew URL, the old one no longer works
Make the item privateGear icon, Remove accessOnly owners keep access

Be careful with Remove access: it also removes access that comes from groups and from inheritance. On a team file, the whole team loses it, not only the people who received the link. In a shared library, closing the hero link is usually enough.

Can Copilot find a file shared with the whole organization?

Not for everyone at once. According to Microsoft Learn, choosing "People in your organization" doesn't make the item available in search or Copilot for all members: access is established when a person uses the link. SharePoint, OneDrive, Teams or Outlook might use it automatically for recipients, however.

An organization link posted in a large channel can therefore reach many more people than intended. One more reason to check the audience before pasting the link.

What I recommend doing

  1. Check on a test file that the new Share dialog has arrived, on the web and in the Office apps on your computers.
  2. List the sites that allow Anyone links and close that option where there is no reason for it.
  3. Keep OnlyPeopleAdded as the default, and use Organization only on a few information sites, after a test.
  4. Tell your users in three lines: add the people, check the audience, then copy the link. For an expiration date, create an additional link.
  5. Brief the helpdesk: don't click Remove access to close a simple link.

The hero link doesn't replace good group management: which group type to use for SharePoint access covers the basics, and the group permissions report shows where a group gives access. For external recipients, see also the end of the SharePoint one-time passcode. For an example of a space where sharing has to be controlled, see the law firm case study. And to train your teams, the ShareFlow training courses.

Sources

Share this article

Know a colleague or client who deals with this? Send them the article in one click.

Read next

Comments

Loading comments…

Leave a comment

Comments are reviewed before they are published. Only your first name and last-name initial are shown.