A unified data governance solution that helps manage, protect, and discover data across your organization
Thank you for the follow up question! Great to hear everything else is working!
Where can i find the Static Scope option.
What is a Static Scope - A Static Scope in the context of Microsoft Purview retention policies simply means you're manually selecting specific users, groups, or locations, instead of using attribute-based filtering like with adaptive scopes.
You don’t actually see the words “Static Scope” in the UI — it's more about how you configure the scope.
For more details, please refer: Optimizing OneDrive Retention Policies with Administrative Units and Adaptive Scopes
Here’s how to configure a static scope:
Steps to Configure a Static Scope in Microsoft Purview:
- Go to the Microsoft Purview compliance portal: https://compliance.microsoft.com
- Navigate to: Information governance > Retention policies
- Choose to Create a new policy or edit an existing one.
- In the Choose locations step:
- Select Exchange email, OneDrive accounts, SharePoint sites, or other workloads.
- Click Edit next to a workload (e.g., Exchange email).
- Choose Let me choose specific users or groups.
- Here, you can manually add specific email addresses or group names.
That’s it, this manual selection is what we refer to as a Static Scope.
How can we accomplish this using advanced query for the adaptive scope?
Great question, and you're spot on about how Azure AD dynamic groups let you use conditions like:
user.companyName -contains "Company"
Unfortunately, adaptive scopes in Microsoft Purview have more limited attribute and operator support, and this affects what you can do in the Advanced Query Builder.
Currently, Adaptive Scopes in Purview do not support operators like -contains. Only exact matches using -eq are supported.
For additional information, please refer: Configure adaptive scopes
So instead of:
user.companyName -contains "Company"
You’ll need to use:
CustomAttribute1 -eq "Company1"
Workaround:
Use Exchange Online custom attributes (e.g., CustomAttribute1) and populate them with your company name variants like "Company1", "Company2"
Create separate adaptive scopes for each:
-
CustomAttribute1 -eq "Company1" -
CustomAttribute1 -eq "Company2"
If you’re already using Azure AD dynamic groups to catch variations using -contains, you can also:
- Use that group as input for a static scope in your retention policy (by manually adding the group in the step above)
I hope this information helps. Please do let us know if you have any further queries.
Kindly consider upvoting the comment if the information provided is helpful. This can assist other community members in resolving similar issues.
Thank you.