Manage sharing and permissions in OneDrive and SharePoint

Applies To
OneDrive (work or school)

If you own a file or folder, you can change what others can do or stop sharing it. Open the sharing dialog to review who has access.

What you see differs depending on whether you're signed in with a personal account or a work or school account. Select a tab in the article to learn more.

See who has access and where it comes from

In OneDrive for work or school or a SharePoint document library, follow these steps:

  1. Select the file or folder.
  2. Select Share.

The sharing dialog shows people and groups with access and information about link usage. Use search and filters to find a person, group, or permission level. For help reading the list, see See who a file is shared with in OneDrive or SharePoint.

The Share dialog with a person's permission menu open, showing Can edit, Can view, Can't download, and Remove access.

Every file or folder has a hero link, shown under File link settings. Additional links, such as links created with a password or expiration date, appear under Other links. Links created before the hero link sharing experience also appear there and continue to work.

Change what someone can do

If you're the owner, select the file or folder, and then select Share to open the sharing dialog.

  1. Find the person or group whose permission you want to change.

  2. Open the permission menu next to their name.

  3. Choose Can edit, Can view, Can't download, or Can review (for supported file types).

    • Can edit lets people view and change the file or folder.
    • Can view lets people view the file or folder without changing it.
    • Can't download lets people view files without saving a local copy.
    • Can review lets people add comments and suggestions in supported files.

To change who can use the hero link, check File link settings. If the audience is Only people added, select Change. For an organization or anyone link, select the current audience text instead. To change what people can do through an organization or anyone link, open the permission menu next to the audience and choose from the same permission options. Can view is selected by default when you first allow access through the link. Changing these settings doesn't create a new URL.

Important

A person keeps the highest permission they have through any source: direct access, a group, the folder or site, the hero link, or another link. For example, changing someone's direct permission to Can view doesn't stop them from editing if a link still gives them Can edit. To reduce their access, change each source that grants the higher permission. To remove their access, remove each source that grants it. If the hero link still grants more access, the sharing dialog might ask you to confirm the change.

If you're the owner, choose the action that matches your goal:

Goal Action
Remove a person or group from the access list Select X next to their name.
Remove an additional link Under Other links, select X next to the link, and confirm Remove link.
Stop the hero link from granting access Under File link settings, select the current audience text, then Only people added.
Make the item private to owners Follow the Remove access procedure.

Removing a person or group from the access list, or removing a link, doesn't remove access granted through other sources. Review each source of access described in the preceding Important note.

Make a file or folder private to owners

Use Remove access to stop sharing the item with everyone except its owners.

Remove access removes direct, group-derived, and inherited access, removes additional sharing links, and returns the hero link to Only people added to the file have access. Only owners can open the item afterward. The hero link's URL doesn't change.

  1. Select the file or folder, and then select Share.
  2. Select Settings (gear), and then Remove access.
  3. Review what will be removed in the confirmation prompt, and then confirm.

Advanced controls for owners

Limit what editors can share

Owners can prevent editors from sharing a file or changing its access and link settings. Editors can still work on the file, but they must ask an owner to give someone else access.

Control access from folder sharing

When someone shares a folder, the permissions they grant automatically apply to all files and subfolders inside it that they have access to. Owners can turn on a control for an item to block these automatic permission updates. With this control on, sharing a parent folder doesn't grant access to that item.

If the hero link was sent somewhere it shouldn't have been, an owner can invalidate it. Invalidation creates a new hero link with a new URL and stops the old link from working. People following the old link might see access denied or a request-access page.

Invalidation changes the URL, not permissions people have through other sources. To make the item private to owners, use Remove access instead.

View files and folders you shared in OneDrive

In OneDrive for work or school on the web, select Shared in the left pane, and then select the By me tab.

Learn more

Microsoft 365 advanced protection

Need more help?

Account support. For help with your Microsoft account and subscriptions, visit Account & Billing Help.

Technical support. For technical support, select Contact Microsoft Support below, enter your problem and select Get Help.

Mobile users can contact Support by opening the OneDrive app and gently shaking your device.

Community support. Communities help you ask questions, give feedback, and hear from experts with rich knowledge. Ask the Microsoft Community. Do not disclose personal or sensitive information in public forums.