Managing Restricted Entities

Earn 25 points (50 with Pro) in two steps

  1. ① Read through the lesson — each section gets a ✓ as you scroll through it.
  2. ② 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

  1. Trigger: A user account sends an email that triggers an outbound spam or phishing alert.
  2. Containment: The system automatically adds the account to the Restricted Entities list.
  3. Notification: Administrators configured to receive alerts are notified of the restriction.
  4. Investigation: The security team reviews the activity logs to confirm if the activity was malicious.
  5. 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

  1. Navigate to the Microsoft Defender XDR portal.
  2. In the left-hand navigation pane, look for the Email & collaboration section.
  3. 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:

  1. Reset Password: Perform a password reset for the user account.
  2. 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.
  3. Check for Malicious Rules: If you find forwarding rules, delete them immediately.
  4. 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:

  1. Return to the Restricted entities page.
  2. Select the checkbox next to the user.
  3. Click the Unblock button.
  4. 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:

  1. 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.
  2. 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.
  3. 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.