Identify an Exchange Online Mail Flow Rule by GUID
Question details
Identify the policy or mail flow rule associated with a GUID in an Exchange Online message trace.

- 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.
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.
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.
Open PowerShell and, if the module is not already installed, run Install-Module ExchangeOnlineManagement. Confirm any installation prompts.
Run Connect-ExchangeOnline and sign in with an account authorized to view mail flow rules.
Run Get-TransportRule | Format-List Identity,Guid and compare the GUID values with the identifier in the message trace.
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.
Check DLP policies and quarantine details
Use this approach if no transport rule matches or the trace suggests a data loss prevention policy is involved.
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.

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.




