How to get the list of emails added to a retention policy in Purview?

Dmitriy Kolesnikov 11 Reputation points
2024-12-23T18:22:59.7766667+00:00

We have created a few retention policies for Microsoft Purview. Each policy is applied to many specific mailboxes (100 mailboxes max). Is there a way to get the list of mailboxes added to each policy?

The Get-RetentionCompliancePolicy command shows policy properties, including the ExchangeLocation field (in truncated view {account1, account 2, ...}). How to get the list of all accounts from that attribute?

Microsoft Purview
Microsoft Purview
A Microsoft data governance service that helps manage and govern on-premises, multicloud, and software-as-a-service data. Previously known as Azure Purview.
1,300 questions
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.