Microsoft Defender for Office 365
Email and collaboration

Outbound Spam Restore Restricted Users

In brief

The article explains that hosted mailboxes use the blocked mailbox UPN, while nonhosted senders use their sending SMTP address when viewing details or removing a restricted sender.

What Defender admins need to know

Administrators can use the appropriate identifier to manage restricted senders successfully.

Summaries are generated from the documentation change itself.

Documentation change

The comparison below shows only the changed extract. Use the full-page view for complete context.

Use Exchange Online PowerShell to view and remove users from the Restricted entities page

To view thisthe list of users thatwho are restricted from sending email, run the following command in Exchange Online PowerShell:

Get-BlockedSenderAddress

The identifier for a restricted sender depends on the sender type:

  • Hosted mailbox: The user principal name (UPN) of the blocked mailbox. The UPN and primary SMTP address aren't required to match.
  • Nonhosted sender: The SMTP address that the sender uses. For example, an on-premises sender is listed by its sending SMTP address.

To view details about a specific user,restricted sender, replace <emailaddress> with their emailthe UPN of a hosted mailbox or the SMTP address of a nonhosted sender, and then run the following command:

Get-BlockedSenderAddress -SenderAddress <emailaddress> | Format-List

For detailed syntax and parameter information, see [Get-BlockedSenderAddress](/powershell/module/exchangepowershell/get-blockedsenderaddress).

To remove a user from the Restricted users list,restricted sender, replace \<emailaddress\> with their emailthe UPN of a hosted mailbox or the SMTP address of a nonhosted sender, and then run the following command:

```powershell
Remove-BlockedSenderAddress -SenderAddress <emailaddress>