How to Bulk Delete Unrecognized Users in Microsoft 365 After a Hijacking
Question details
The user needs to securely remove a large number of unauthorized accounts created in Microsoft 365 and Microsoft Entra ID following an account compromise.

- Product
- Microsoft 365
- Device & OS
- not provided
- Scenario
- Recovering from an account hijacking incident where unauthorized users were added to the tenant.
- Observed behavior
- A large volume of unrecognized users exist in the Microsoft Entra ID directory, posing an ongoing security risk to the tenant.
Before making any bulk deletions, immediately reset compromised administrator credentials, revoke active sessions, enforce multifactor authentication (MFA), and export audit logs for evidence.
Remove Unauthorized Users via Microsoft Entra Admin Center
Manually select and delete unrecognized accounts using the web interface, ideal for a manageable number of rogue accounts.
This method is straightforward but requires careful manual review to ensure legitimate users, guests, and service accounts are preserved.
Sign in to the Microsoft Entra admin center with a secure Global Administrator account.
Go to 'Identity' > 'Users' > 'All users' in the left-hand navigation menu.
Review the list carefully and check the boxes next to the unrecognized users created during the hijacking.
Click the 'Delete' button at the top of the page and confirm the action to move them to the Deleted users container.

Bulk Delete Users Using Microsoft Graph PowerShell
Use a PowerShell script to filter and delete hundreds or thousands of unauthorized users efficiently.
Experience a Secure and Lightweight Office Suite with WPS Office
While Microsoft 365 requires complex tenant administration and robust security management against hijacking, WPS Office offers a straightforward, powerful, and locally secure alternative for your daily document needs. Enjoy seamless file compatibility without the heavy administrative overhead.
- 1. Download the installer: Visit the WPS Office website and download the free version for your operating system.
- 2. Install the application: Run the installer and follow the simple on-screen instructions to complete the setup.
- 3. Open your files: Launch WPS Office and instantly open your existing Microsoft Word, Excel, and PowerPoint files without formatting loss.

Frequently Asked Questions
What should I do first if my Microsoft 365 tenant is hijacked?
Immediately reset all administrator passwords, revoke active user sessions, enforce multi-factor authentication (MFA), and check audit logs for unauthorized changes before deleting any users.
Can I recover users deleted by mistake in Microsoft Entra ID?
Yes, deleted users are moved to the 'Deleted users' container in Microsoft Entra ID and can be restored within 30 days before they are permanently removed.
When should I contact Microsoft Support for unauthorized users?
Contact Microsoft Support or your incident response team if thousands of accounts were created, the tenant is completely compromised, or if you need forensic assistance before performing irreversible bulk deletions.




