Forum Discussion
MC_Edwards
Aug 01, 2023Copper Contributor
Adaptive scope syntax
I've been asked to create some retention policies for mailboxes using Purview. Existing users should have an M365 retention policy that retains for 5 years. Separated users, whose mailboxes h...
EricaToelle
Microsoft
Aug 15, 2023Hi MC_Edwards,
There is an error in the setup. Here are the steps:
- Create an adaptive scope. Choose user. Use the query: IsInactiveMailbox -eq "True"
- Create a retention policy. Configure the settings to retain for 2 years then delete. On the "scope" step of the wizard, choose adaptive scope, then select the scope you created in step #1.
- The policy will only apply to mailboxes included in the adaptive scope, so therefore only inactive mailboxes.
For the active user policy, I would follow the same steps, except use this query for the adaptive scope, just to ensure there is absolutely no overlap: IsInactiveMailbox -eq "False"
Here's a blog post about working with adaptive scopes + mailboxes: Using Adaptive Policy Scopes to Apply M365 Retention to Shared, Resource, and Inactive Mailboxes - Microsoft Community Hub
Igbins81
Dec 15, 2023Copper Contributor
Hello Erica,
I have like to create an adaptive scope for all M365 service date and apply a retention of 5years to it. Example Exchange, SharePoint, OneDrive and MS Teams. Please can you guide me on this.
I have like to create an adaptive scope for all M365 service date and apply a retention of 5years to it. Example Exchange, SharePoint, OneDrive and MS Teams. Please can you guide me on this.