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:
- Select the file or folder.
- 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.
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.
Find the person or group whose permission you want to change.
Open the permission menu next to their name.
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.
Stop sharing with people or through a link
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.
- Select the file or folder, and then select Share.
- Select Settings (gear), and then Remove access.
- 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.
Stop people from using an old hero link
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.
Stop or change sharing
If you're the file owner, you can stop sharing or change the sharing permissions. Follow these steps:
- Select the file or folder you want to stop sharing.
- Select Information
in the upper-right corner to open the Details pane.
Note
The Information icon is just below your profile picture. If you don't see it, ensure you select only one file or folder. The icon doesn't display if you select multiple items.
- On the Details pane, under the Has Access header, you see the People icon, the Links icon, and the Email icon. These options vary depending on how you shared the file or folder. Select Manage access.
- To remove a sharing link, select the X next to the link. Review the confirmation prompt, and then select Remove link. You can also remove it through the Edit link page, as described in the following step.
- To change the password or expiration date on a sharing link, select the dropdown arrow for the link that you want to edit. On the Edit link page:
- Select the password and change it, or clear the Set password check box to remove the password.
- Update the link expiration date, or clear the Set link expiration check box to remove the expiration date from the link.
- Select Remove Link to delete the link and stop sharing with that link. You receive a prompt asking if you're sure you want to remove the link. If so, select Remove link.
Note
- If your Microsoft account is set with Family Safety, and your parent turns off contact management, you can only share items with people who are already on your contact list.
- Respect copyright and be careful what you share online. Copying or sharing unauthorized materials violates the Microsoft Services Agreement.
View files and folders you shared in OneDrive with a personal account
In OneDrive on the web, sign in with your personal Microsoft account, and then select Shared in the left pane.
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.
Technical support. For technical support, contact your organization's IT helpdesk, service desk, or admin.
IT Admins. IT Admins should view Help for OneDrive Admins, the OneDrive Tech Community or contact Microsoft 365 for business support.