Forum Discussion
Adaptive Scopes
I'm setting up adaptive scopes in MS Purview for data retention testing, focusing on Entra groups. However, when I create a test adaptive scope using the 365 groups scope and add a query with the group's display name, it doesn't populate. Some scopes are over 7 days old, despite MS stating it can take up to 3 days for queries to sync.
Does anyone have a better method for creating adaptive scopes for Entra groups?
4 Replies
EzeTech​ The adaptive scope will gradually populate over several days, so even though you see some users in the list now, it may not have fully populated. I have even seen it take more than a week to fully populate. over a week. You can now use PowerShell Get-AdaptiveScopeMembers (ExchangePowerShell) | Microsoft Learn to list the members in a specific adaptive scope. This is worth cross-checking against the list of users you expect to be in the scope.
For Microsoft 365 (Entra Groups) you can use the following properties to build your Adaptive scope queries.
- Name
- Display name
- Description
- Email addresses
- Alias
- Exchange custom attributes: CustomAttribute1 - CustomAttribute15
- Exchange extension custom attributes: Extension Custom Attribute 1 - Extension Custom Attribute 5
I always try to avoid using Display Name as even with a defined provisioning process that adds prefixes (e.g., HR-GroupName), owners can change the Display Name at any time. Instead, use custom attributes, as users cannot modify these values. If you have a provisioning process, you can write the value (e.g., HR) to the relevant custom attribute after the group has been created.
As you mentioned, the Adaptive Scopes can take some time to populate, so I recommend testing the query using Exchange Online PowerShell and applying the appropriate filter e.g. Groups starting with SAM.
Get-Recipient -RecipientTypeDetails GroupMailbox -Filter {DisplayName -like "SAM*"}This way you get to see what groups will appear in the Adaptive scope. If you need more details, please share your query and what you want to include in the scope.
Reference
- EzeTechCopper Contributor
I need to create an adoptive scope for retention that looks at the user attributes and looks for matches with the domain part of email addresses. How do I use the advanced query builder to look up partial email domain. For example I have tried:
EmailAddresses -Like "*@onmicrosoft.com"
This doesn't seem to be working, any idea how I can achieve this adoptive scope with advanced query builder?- EzeTechCopper Contributor
Ignore me, it just needed 4 days to propagate through but worked, scope applied.