Share via

Adaptive Scopes are not Syncing

Philip Lherisson 0 Reputation points
2025-04-21T20:06:27.8033333+00:00

I created a policy that deletes attachments after 60 days. After the policy was created, I tested it on myself and it worked. I then added another user to the adaptive scope and it never applied after 7 days. Is there a reason why this could be happening? I am adding the users by email address.

Thanks

Microsoft Security | Microsoft Purview

1 answer

Sort by: Most helpful
  1. Chandra Boorla 15,475 Reputation points Microsoft External Staff Moderator
    2025-04-23T19:15:20.0933333+00:00

    @Philip Lherisson

    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:

    1. Go to the Microsoft Purview compliance portal: https://compliance.microsoft.com
    2. Navigate to: Information governance > Retention policies
    3. Choose to Create a new policy or edit an existing one.
    4. 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.

    Was this answer helpful?

    0 comments No comments

Your answer

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