Security Policy Errors

Identify an Exchange Online Mail Flow Rule by GUID

Muhammad TalhaMuhammad Talha Nov 27, 2026 869 views

Question details

Identify the policy or mail flow rule associated with a GUID in an Exchange Online message trace.

Identify an Exchange Online Mail Flow Rule by GUID
Product
Microsoft Exchange Online
Device & OS
not provided
Scenario
An administrator is investigating a message that is repeatedly sent to quarantine.
Observed behavior
The message trace shows a rule identifier that the administrator cannot recognize by name.
Before you start

Copy the rule GUID and message details from the message trace. Use an administrator account with permissions to view Exchange mail flow rules and, if needed, Microsoft Purview DLP policies.

Solution 1Recommended

Match the GUID to an Exchange Online transport rule

Use Exchange Online PowerShell to list transport rules and compare their GUIDs with the message trace.

1
Install the PowerShell module

Open PowerShell and, if the module is not already installed, run Install-Module ExchangeOnlineManagement. Confirm any installation prompts.

2
Connect to Exchange Online

Run Connect-ExchangeOnline and sign in with an account authorized to view mail flow rules.

3
List rule identifiers

Run Get-TransportRule | Format-List Identity,Guid and compare the GUID values with the identifier in the message trace.

4
Review the matching rule

In the Exchange admin center, open Mail flow > Rules and select the matching rule. Review its conditions and actions, then change it only if the rule is incorrectly handling the message.

If the cmdlet is not recognized: Make sure the ExchangeOnlineManagement module is installed and Connect-ExchangeOnline has completed successfully. Get-TransportRule is available in the Exchange Online session, not a disconnected PowerShell session.
Free Microsoft Office alternative

Work with Office documents in WPS Office

WPS Office is a free, lightweight Office alternative with a familiar interface and compatibility with Microsoft Office formats, making it easy to move existing documents into your workflow. It does not manage Exchange Online rules or quarantine.

Free, lightweight tools for everyday document workCompatible with Microsoft Word, Excel, and PowerPoint formatsA familiar interface that helps users move from Microsoft OfficeReview and edit documents that may be attached to email messages
microsoft office alternative - wps office

Frequently Asked Questions

Why is Get-TransportRule not recognized?

Install the ExchangeOnlineManagement module with Install-Module ExchangeOnlineManagement, then run Connect-ExchangeOnline and sign in before using Get-TransportRule.

What if the GUID does not match a transport rule?

Check Data Loss Prevention > Policies in the Microsoft Purview portal and review the message details under Email & collaboration > Review > Quarantine in Microsoft Defender. A DLP policy may be responsible.

Where can I review the action configured for a mail flow rule?

In the Exchange admin center, go to Mail flow > Rules and select the rule identified by the PowerShell results. Review its conditions and actions before making changes.

Can I release the message after fixing the rule?

If you have the necessary permissions and release is available for the message, select it under Email & collaboration > Review > Quarantine in the Microsoft Defender portal and choose Release.