Microsoft O365 Group Mailbox only retention

lmgmcg 105 Reputation points
2024-12-03T15:59:38.95+00:00

Hi,

I need to create a retention policy to delete emails older than 1 month from O365 group email.

Already created a retention policy in Purview and changed the application attribute Like this from Powershell --> Set-RetentionCompliancePolicy -Identity policyname -Applications Group:Exchange.

But still when I do the "Get-RetentionCompliancePolicy" I can see the Workload as follows.

Workload--> Exchange, SharePoint, OneDriveForBusiness, Skype, ModernGroup, DynamicScope.

I do not want to delete anything else, only but old emails.

So I haven't enabled the policy. Is my config correct and do I have to wait some time for this changes to take effect and display.

Thanks and Regards,

lmgmcg

Any suggestions?

Microsoft 365
Microsoft 365
Formerly Office 365, is a line of subscription services offered by Microsoft which adds to and includes the Microsoft Office product line.
5,373 questions
Microsoft Exchange Online
Microsoft Intune Compliance
Microsoft Intune Compliance
Microsoft Intune: A Microsoft cloud-based management solution that offers mobile device management, mobile application management, and PC management capabilities.Compliance: Adhering to rules, standards, policies, and laws.
171 questions
0 comments No comments
{count} votes

Accepted answer
  1. Vasil Michev 111.1K Reputation points MVP
    2024-12-03T17:57:31.4166667+00:00

    You can ignore the "Workload" property, it's not always correctly reflecting the policy setup. The set of *Location and *LocationException properties are what you should be looking at, but make sure to include the -DistributionDetail switch when running the cmdlet, otherwise they are not populated.

    Get-RetentionCompliancePolicy Groups -DistributionDetail | fl Name,Distribution*,*Location*
    
    1 person found this answer helpful.

1 additional answer

Sort by: Most helpful
  1. Xintao Qiao-MSFT 5,085 Reputation points Microsoft Vendor
    2024-12-04T02:29:20.97+00:00

    Hi, @lmgmcg

    I agree with Vasil's suggestion.

    Currently, it will show all workloads and won't show the actual workloads to which the policy is applied. This is mentioned in the article.

    User's image

    More information can be found Get-RetentionCompliancePolicy (ExchangePowerShell) | Microsoft Learn


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    0 comments No comments

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.