How to Revoke OneDrive Sharing and Secure a Hacked Account
Question details
The user needs to globally revoke all OneDrive file sharing permissions and secure their Microsoft account after a suspected hacking and unauthorized password reset.

- Product
- OneDrive
- Device & OS
- not provided
- Scenario
- A user's Microsoft account was compromised, and they want to completely stop sharing all OneDrive files to protect their privacy while locking down their account security.
- Observed behavior
- OneDrive lacks a global 'revoke all sharing' button, forcing the user to manually remove access file by file. Managing shared files is confusing, and the compromised account requires comprehensive security updates to prevent further unauthorized access.
Before modifying your sharing permissions, ensure you are logging into your Microsoft account from a secure, trusted device to prevent further unauthorized access during the recovery process.
Manually Revoke Sharing Permissions in OneDrive
Because OneDrive does not provide a single command to remove shared permissions globally, you must review and revoke access for each shared file or folder individually.
Microsoft frequently updates the OneDrive interface, which can sometimes make the 'Stop sharing' button difficult to locate. Revoking access requires you to manage permissions from the 'Shared by me' directory.
Sign in to OneDrive on the web. On the left navigation pane, click on 'Shared', and then select the 'Shared by me' tab to view a list of all the items you are currently sharing.
Locate a file or folder you want to stop sharing. Click the three-dot menu icon next to the file name and select 'Manage access' from the dropdown menu.
In the Manage access panel, find the specific individual or link you want to restrict. Click the permission icon next to their name and choose 'Remove direct access' to instantly revoke their sharing rights. Repeat this process for all necessary files and nested folders.

Secure Your Compromised Microsoft Account
After a security breach, revoking file access is not enough. You must lock down your Microsoft account to prevent hackers from logging back in.
Switch to WPS Office for Easier Document Control
If navigating Microsoft OneDrive's sharing settings and account security feels confusing, consider switching to WPS Office. It provides a lightweight, highly compatible, and user-friendly alternative to Microsoft Office, featuring straightforward document sharing controls and robust privacy options.
- 1. Download and install: Visit the official WPS website to download the free WPS Office suite for your operating system.
- 2. Open existing files: Launch WPS Office and easily open your existing Microsoft Office documents without losing any formatting.
- 3. Share securely: Use the built-in share feature to generate secure links with easily customizable expiration dates and permission settings.

Frequently Asked Questions
Is there a way to revoke all OneDrive sharing links globally at once?
No, OneDrive does not currently offer a single global command to revoke all sharing permissions. You must manually review and remove access for each shared file or folder from the 'Shared by me' section.
How do I check if unauthorized users accessed my Microsoft account?
You can verify unauthorized access by logging into your Microsoft account, navigating to the Security tab, and clicking on 'Sign-in activity'. Review the list for any unfamiliar devices, locations, or IP addresses.
Why can't I find the 'Stop sharing' option in OneDrive?
Microsoft frequently updates the OneDrive interface. If a dedicated 'Stop sharing' button is missing, you must select the file, click 'Manage access' from the top menu, select the user's permission level, and click 'Remove direct access'.
Can I hide my primary email address when sharing OneDrive files?
Sharing files from a personal OneDrive account typically exposes your account's primary email address to the recipient. To maintain privacy, you would need to create and share from a separate, dedicated email account.




