Managing Restricted Entities
Earn 25 points (50 with Pro) in two steps
- ① Read through the lesson — each section gets a ✓ as you scroll through it.
- ② When every section has a ✓, tap Complete lesson.
0 of 9 read · keep scrolling
✦ See fewer ads and earn double points — 50 a lesson instead of 25 — with Pro
Lesson: Managing Restricted Entities in Microsoft Defender XDR
Introduction: The Critical Role of Restricted Entities
In the modern digital workplace, email remains the primary vector for cyberattacks. Whether it is phishing, business email compromise (BEC), or the distribution of malware, the inbox is often the first line of fire. When a user account or an email mailbox is compromised, it can be used to send out thousands of malicious messages, quickly damaging the organization’s reputation, causing its domains to be blacklisted by major internet service providers (ISPs), and potentially leading to significant financial loss.
Microsoft Defender for Office 365 provides a specialized mechanism to contain these threats: the "Restricted Entities" dashboard. This feature is a crucial control point for security operations teams. When the system detects that an account has been compromised or has exhibited signs of malicious activity—such as sending spam or phishing links—it automatically restricts the account from sending email. This proactive containment prevents the further spread of threats while giving administrators the time to investigate and remediate the underlying issue.
Understanding how to manage these restricted entities is not just about clicking buttons in a portal; it is about mastering the balance between security and business continuity. If you handle these restrictions incorrectly, you might lock out a legitimate user, causing productivity loss, or worse, you might unblock a compromised account too early, allowing a threat actor to resume their malicious activities. This lesson will guide you through the lifecycle of a restricted entity, from detection to investigation and final remediation.
Not read yet
Understanding the Restricted Entities Workflow
To manage restricted entities effectively, you must first understand the logic behind why an account ends up in this state. The restricted entities list is not a manual blacklist you create for people you dislike; it is a system-generated list populated by the Microsoft Defender XDR automated threat detection engines.
When an account is flagged, it is typically because it has violated the outbound spam policies or has been identified as a source of phishing. The system automatically places a "sending restriction" on the account. This means the mailbox can still receive incoming mail, but it is blocked from sending any outgoing messages, either internally or externally.
The Lifecycle of a Restricted Entity
- Trigger: A user account sends an email that triggers an outbound spam or phishing alert.
- Containment: The system automatically adds the account to the Restricted Entities list.
- Notification: Administrators configured to receive alerts are notified of the restriction.
- Investigation: The security team reviews the activity logs to confirm if the activity was malicious.
- Remediation: The team resets the user's password, clears the restriction, and secures the account.
Callout: Restricted Entities vs. Blocked Senders It is important to distinguish between "Restricted Entities" and "Blocked Senders." A Blocked Sender is typically a list of external email addresses that you have decided to block from reaching your users. A Restricted Entity is an internal asset (a user account or mailbox) that the system has sidelined to prevent it from harming others. The logic is reversed: you block external entities to protect your users, but you restrict internal entities to protect the global email ecosystem.
Not read yet
Navigating the Microsoft Defender Portal
The primary interface for managing these entities is the Microsoft Defender XDR portal. You must have the appropriate permissions, typically the "Security Administrator" or "Global Administrator" role, to view and manage these items.
How to Access the List
- Navigate to the Microsoft Defender XDR portal.
- In the left-hand navigation pane, look for the Email & collaboration section.
- Under the Review menu, click on Restricted entities.
Once you are in this dashboard, you will see a list of accounts that are currently restricted. Each entry provides vital metadata, including the date the restriction was applied, the reason for the restriction (e.g., "User compromised," "Outbound spam"), and the current status of the entity.
Step-by-Step: Investigating and Removing Restrictions
Simply removing a restriction without addressing the root cause is a common mistake that leads to recurring incidents. If a user is compromised, just clicking "Unblock" will allow the attacker to continue their work within seconds. You must follow a methodical approach to ensure the environment is clean.
Phase 1: Investigation
Before taking any action, you need to understand what happened. Click on the restricted user in the portal to open the flyout menu. This menu provides links to:
- Email activity: Check what emails were sent recently. Look for patterns, such as bulk sends to external addresses or emails containing suspicious URLs.
- Sign-in logs: Check the user's recent sign-in history. Look for unusual IP addresses, logins from geographic regions where the user does not operate, or multiple successful logins from different locations in a short timeframe.
- Audit logs: Check if any mailbox rules were created recently. Attackers often create forwarding rules to steal information or hide their tracks.
Phase 2: Remediation
Once you have confirmed the compromise, perform the following steps:
- Reset Password: Perform a password reset for the user account.
- Revoke Sessions: Use the Microsoft Entra ID (formerly Azure AD) portal to revoke all active sessions for the user. This forces the attacker to log in again, which they will be unable to do with the new password.
- Check for Malicious Rules: If you find forwarding rules, delete them immediately.
- Multi-Factor Authentication (MFA): Ensure the user has MFA enabled and that their secondary authentication method (like a phone number or app) has not been tampered with.
Phase 3: Unblocking
Only after the above steps are completed should you proceed to unblock the user:
- Return to the Restricted entities page.
- Select the checkbox next to the user.
- Click the Unblock button.
- You will be prompted to provide a reason for the unblock. Be descriptive—this helps in future audits.
Note: Even after you unblock a user, it may take up to an hour for the change to propagate across the entire Microsoft 365 environment. Advise the user to wait briefly before attempting to send important communications.
Not read yet
Common Pitfalls and How to Avoid Them
1. The "Ignore and Unblock" Trap
The most frequent mistake administrators make is unblocking a user without investigating why the account was flagged in the first place. This often happens because of pressure from management to "get the user back online." Always insist on a quick audit of sign-in logs before unblocking.
2. Ignoring Account Risk Levels
Microsoft Defender XDR assigns risk levels to users based on behavioral analytics. If a user is in the "Restricted Entities" list and also shows up as "High Risk" in the Identity Protection dashboard, do not simply unblock them. These users are often the target of sophisticated attacks, and their credentials may have been harvested via a phishing site that is still active.
3. Forgetting to Clean Up Mailbox Rules
Attackers love to set up hidden mailbox rules. For example, they might create a rule that moves all incoming mail from "HR" or "Finance" to the "Deleted Items" folder and marks them as read. This keeps the user unaware that they are missing important communications. Always check for these rules in the Exchange Admin Center under the user's mailbox settings.
4. Lack of Communication
When a user is restricted, their ability to work is impaired. If you do not communicate with them, they might try to circumvent the restriction by using personal email or other unauthorized methods, which creates a new set of security risks. Proactively reach out to the user, explain the situation, and provide them with the steps they need to take to regain access.
Not read yet
Automating the Process: PowerShell for Efficiency
For large organizations, manually checking the portal is not scalable. You can use the ExchangeOnlineManagement PowerShell module to monitor and manage these entities more efficiently.
Connecting to Exchange Online
# Install the module if you haven't already
Install-Module -Name ExchangeOnlineManagement -Scope CurrentUser
# Connect to your tenant
Connect-ExchangeOnline
Retrieving Restricted Users
You can use the Get-BlockedSenderAddress or Get-RestrictedUser cmdlets to pull a report of all currently restricted accounts.
# Get all restricted users
Get-RestrictedUser
# Export the list to a CSV for your security report
Get-RestrictedUser | Export-Csv -Path "C:\Reports\RestrictedUsers.csv" -NoTypeInformation
Unblocking a User via PowerShell
If you have verified the account and need to unblock it programmatically:
# Unblock a specific user
Remove-RestrictedUser -TargetEmailAddress "[email protected]"
Tip: Use a script to monitor the Restricted Entities list every morning. You can set up a simple scheduled task that sends an email to the IT security team whenever a new entry appears in the list, ensuring that no compromise goes unnoticed for more than a few hours.
Not read yet
Comparison Table: Manual vs. Automated Management
| Feature | Manual Management | Automated/Scripted Management |
|---|---|---|
| Speed | Slow, prone to human delay | Instant alerts and response |
| Scalability | Difficult for large environments | Highly scalable for thousands of users |
| Visibility | Requires checking the portal | Real-time reporting and logging |
| Consistency | Variable based on operator | Consistent, repeatable process |
| Complexity | Simple, no coding required | Requires PowerShell knowledge |
Best Practices for Prevention
While managing restricted entities is a reactive process, you should strive to prevent these incidents from occurring. The following measures are standard industry practices for securing email environments:
Implement Strict Outbound Spam Policies
Configure your outbound spam policies to be as restrictive as possible. Ensure that you have a "Notify" action set for when a user is restricted, so your security team knows immediately.
Enforce Conditional Access Policies
Use Microsoft Entra ID Conditional Access to enforce MFA for all users. If a user is traveling or in a new location, require a compliant device and a strong authentication method. This prevents many automated phishing tools from successfully using stolen credentials.
Monitor Risky Sign-ins
Integrate Identity Protection with your security workflow. By addressing risky sign-ins before they lead to compromised accounts, you reduce the likelihood that a user will end up on the Restricted Entities list.
Regular Security Awareness Training
The vast majority of account compromises start with a user clicking a link they shouldn't have. Regularly train your employees on how to identify phishing attempts. A well-trained user base is your strongest defense against the triggers that lead to restricted entities.
Callout: The "Human Firewall" Technology can only do so much. The "Human Firewall"—your employees—is the final and most important barrier. When an employee reports a suspicious email using the "Report Message" button in Outlook, they are providing the system with data to refine its machine learning models. Encourage this behavior, as it directly reduces the risk of future restrictions.
Not read yet
Advanced Troubleshooting: When the Restriction Persists
Sometimes, you might unblock a user, but they continue to have issues sending email. This is usually due to one of the following reasons:
- DNS Reputation Issues: If the account was used to send a massive amount of spam, your domain's reputation with external ISPs may have dropped. Even if Microsoft unblocks the internal account, external mail servers might still reject your mail. You may need to check your domain's SPF, DKIM, and DMARC records to ensure they are configured correctly.
- Backpressure: Microsoft 365 uses a system called "backpressure" to manage traffic. If your account was heavily compromised, there might be a temporary hold on the account's ability to communicate with specific external gateways.
- Pending Tenant-Wide Blocks: In extreme cases, the entire tenant might be flagged for outbound spam. If you unblock a user and they still cannot send mail, check the "Tenant Allow/Block List" or verify if your tenant itself has been restricted by Microsoft's backend teams.
If you encounter persistent issues, open a support ticket with Microsoft. Provide the MessageID of an email that failed to send and the timestamp of the event. Support engineers can look at the internal logs that are not visible in the standard Defender dashboard.
Not read yet
Industry Standards and Compliance
For organizations in regulated industries (such as healthcare or finance), managing restricted entities is part of your compliance obligation. Under frameworks like HIPAA or GDPR, you are required to report incidents that involve the unauthorized access of personal data.
When a user is restricted due to a compromise, you must treat this as a security incident. Ensure that your documentation includes:
- The time the compromise was detected.
- The steps taken to remediate the account.
- A review of the data the attacker accessed (e.g., check mailbox audit logs for items exported or deleted).
- The final decision on why the user was unblocked.
Keep these logs for at least one year. Auditors often ask for proof that you have a process for identifying and containing compromised accounts, and the Restricted Entities list is the primary evidence of your responsiveness.
Not read yet
Summary of Key Takeaways
Managing restricted entities in Microsoft Defender XDR is a core skill for any security professional. It requires a blend of technical knowledge, investigative rigor, and clear communication. By following the guidelines in this lesson, you ensure that your organization remains secure while minimizing the impact on legitimate business operations.
- Proactive Containment: The Restricted Entities list is an automated safety feature designed to stop the spread of malicious activity from compromised accounts. Always treat these entries as high-priority security incidents.
- Never Skip Investigation: The biggest mistake is unblocking a user without identifying the root cause. Always review sign-in logs, mailbox rules, and recent email activity before clearing a restriction.
- Follow Remediation Steps: A proper response includes resetting passwords, revoking active sessions, and checking for malicious configuration changes (like forwarding rules).
- Automate for Scale: For larger environments, leverage PowerShell to monitor and report on restricted entities to ensure nothing slips through the cracks.
- Focus on Prevention: Use Conditional Access, MFA, and user awareness training to reduce the number of accounts that become compromised in the first place.
- Documentation is Critical: Maintain a clear audit trail of why an account was restricted and the steps taken to remediate it; this is essential for both security hygiene and regulatory compliance.
- Communication Matters: Keep users informed when their accounts are restricted. This prevents them from attempting to use insecure workarounds while their account is under investigation.
By mastering these concepts, you transition from simply managing alerts to actively defending your organization's digital perimeter. Remember that the goal is not just to unblock users, but to ensure that the environment is cleaner and more resilient after every incident. Stay vigilant, maintain your logs, and always prioritize the security of your identity and messaging infrastructure.
Not read yet
Each section gets a ✓ as you scroll through it. Tap the button to jump to the next one.
- Creating a Microsoft 365 Tenant
- Creating a Microsoft 365 Tenant Quiz5q
- Implementing and Managing Domains
- Implementing and Managing Domains Quiz5q
- Configuring Organization Settings
- Configuring Organization Settings Quiz5q
- Monitoring Microsoft 365 Service Health
- Monitoring Microsoft 365 Service Health Quiz5q
- Configuring Network Connectivity Insights
- Configuring Network Connectivity Insights Quiz5q
- Managing Software Updates in Microsoft 365
- Managing Software Updates in Microsoft 365 Quiz5q
- Monitoring Microsoft 365 Adoption and Usage
- Monitoring Microsoft 365 Adoption and Usage Quiz5q
- Configuring Microsoft 365 Backup
- Configuring Microsoft 365 Backup Quiz5q
- Creating and Managing Users in Microsoft Entra ID
- Creating and Managing Users in Microsoft Entra ID Quiz5q
- Managing External Users and Guest Access
- Managing External Users and Guest Access Quiz5q
- Creating and Managing Contacts
- Creating and Managing Contacts Quiz5q
- Creating and Managing Microsoft 365 Groups
- Creating and Managing Microsoft 365 Groups Quiz5q
- Managing Shared Mailboxes
- Managing Shared Mailboxes Quiz5q
- Managing Microsoft 365 Licenses
- Managing Microsoft 365 Licenses Quiz5q
- Performing Bulk User Management with PowerShell
- Performing Bulk User Management with PowerShell Quiz5q
- Implementing Group-Based Licensing
- Implementing Group-Based Licensing Quiz5q
- Implementing Roles in Microsoft 365
- Implementing Roles in Microsoft 365 Quiz5q
- Managing Microsoft Entra ID Roles
- Managing Microsoft Entra ID Roles Quiz5q
- Managing Permissions for Microsoft Defender XDR
- Managing Permissions for Microsoft Defender XDR Quiz5q
- Managing Delegation with Administrative Units
- Managing Delegation with Administrative Units Quiz5q
- Managing Roles with Privileged Identity Management
- Managing Roles with Privileged Identity Management Quiz5q
- Managing Microsoft Purview Permissions
- Managing Microsoft Purview Permissions Quiz5q
- Preparing for Identity Synchronization
- Preparing for Identity Synchronization Quiz5q
- Using IdFix for Directory Cleanup
- Using IdFix for Directory Cleanup Quiz5q
- Implementing Microsoft Entra Connect Sync
- Implementing Microsoft Entra Connect Sync Quiz5q
- Implementing Microsoft Entra Cloud Sync
- Implementing Microsoft Entra Cloud Sync Quiz5q
- Monitoring with Microsoft Entra Connect Health
- Monitoring with Microsoft Entra Connect Health Quiz5q
- Troubleshooting Synchronization Issues
- Troubleshooting Synchronization Issues Quiz5q
- Implementing Authentication Methods
- Implementing Authentication Methods Quiz5q
- Implementing Self-Service Password Reset
- Implementing Self-Service Password Reset Quiz5q
- Implementing Microsoft Entra Password Protection
- Implementing Microsoft Entra Password Protection Quiz5q
- Investigating Authentication Issues
- Investigating Authentication Issues Quiz5q
- Configuring Passwordless Authentication
- Configuring Passwordless Authentication Quiz5q
- Planning for Identity Protection
- Planning for Identity Protection Quiz5q
- Implementing Microsoft Entra Identity Protection
- Implementing Microsoft Entra Identity Protection Quiz5q
- Planning Conditional Access Policies
- Planning Conditional Access Policies Quiz5q
- Implementing Conditional Access Policies
- Implementing Conditional Access Policies Quiz5q
- Implementing Multifactor Authentication
- Implementing Multifactor Authentication Quiz5q
- Configuring Named Locations
- Configuring Named Locations Quiz5q
- Understanding Microsoft Security Exposure Management
- Understanding Microsoft Security Exposure Management Quiz5q
- Managing Microsoft Secure Score
- Managing Microsoft Secure Score Quiz5q
- Reviewing and Responding to Incidents
- Reviewing and Responding to Incidents Quiz5q
- Using Advanced Hunting in Defender XDR
- Using Advanced Hunting in Defender XDR Quiz5q
- Reviewing Defender XDR Reports
- Reviewing Defender XDR Reports Quiz5q
- Using Microsoft Defender Threat Intelligence
- Using Microsoft Defender Threat Intelligence Quiz5q
- Configuring Custom Detection Rules
- Configuring Custom Detection Rules Quiz5q
- Implementing Threat Policies in Defender for Office 365
- Implementing Threat Policies in Defender for Office 365 Quiz5q
- Configuring Alert Policies
- Configuring Alert Policies Quiz5q
- Investigating Email and Collaboration Threats
- Investigating Email and Collaboration Threats Quiz5q
- Managing Attack Simulation Training
- Managing Attack Simulation Training Quiz5q
- Managing Restricted Entities
- Managing Restricted Entities Quiz5q
- Onboarding Devices to Defender for Endpoint
- Onboarding Devices to Defender for Endpoint Quiz5q
- Configuring Endpoint Settings
- Configuring Endpoint Settings Quiz5q
- Using Vulnerability Management Dashboard
- Using Vulnerability Management Dashboard Quiz5q
- Responding to Endpoint Vulnerabilities
- Responding to Endpoint Vulnerabilities Quiz5q
- Managing Automated Investigation and Remediation
- Managing Automated Investigation and Remediation Quiz5q
- Configuring App Connector for Microsoft 365
- Configuring App Connector for Microsoft 365 Quiz5q
- Configuring Cloud Apps Policies
- Configuring Cloud Apps Policies Quiz5q
- Interpreting Activity Logs
- Interpreting Activity Logs Quiz5q
- Configuring Cloud App Discovery
- Configuring Cloud App Discovery Quiz5q
- Responding to Cloud App Discovery Issues
- Responding to Cloud App Discovery Issues Quiz5q
- Implementing Sensitive Information Types
- Implementing Sensitive Information Types Quiz5q
- Using Keywords and Regular Expressions
- Using Keywords and Regular Expressions Quiz5q
- Implementing Retention Labels and Policies
- Implementing Retention Labels and Policies Quiz5q
- Implementing Sensitivity Labels and Policies
- Implementing Sensitivity Labels and Policies Quiz5q
- Monitoring Label Usage with Content Explorer
- Monitoring Label Usage with Content Explorer Quiz5q
- Using Activity Explorer and Label Reports
- Using Activity Explorer and Label Reports Quiz5q
- Configuring Auto-Labeling Policies
- Configuring Auto-Labeling Policies Quiz5q
- Configuring DLP Policies for Exchange Online
- Configuring DLP Policies for Exchange Online Quiz5q
- Configuring DLP for SharePoint and OneDrive
- Configuring DLP for SharePoint and OneDrive Quiz5q
- Configuring DLP for Teams and Power BI
- Configuring DLP for Teams and Power BI Quiz5q
- Configuring DLP for Microsoft 365 Copilot
- Configuring DLP for Microsoft 365 Copilot Quiz5q
- Configuring Endpoint DLP
- Configuring Endpoint DLP Quiz5q
- Reviewing DLP Alerts and Events
- Reviewing DLP Alerts and Events Quiz5q
- Responding to DLP Reports
- Responding to DLP Reports Quiz5q
Spend your points to unlock exam-style practice questions
Spend points to unlock MS-102 exam-style practice questions.
Practice for MS-102