Forum Discussion

chrishorsted720's avatar
chrishorsted720
Copper Contributor
Apr 14, 2025
Solved

Adaptive Scopes

Hi

I have built a Purview Adaptive Scope with query syntax RecipientTypeDetails -eq 'UserMailbox' to only return user mailboxes because we want to include Shared Mailboxes. This scope has been used for retain & delete policy.

I have now realised this actually includes "Inactive User Mailboxes" which I want to exclude from the policy. Could someone please help me work out how best to achieve the requirement.

Thanks in Advance

Chris

  • You should be able to use the IsInactiveMailbox property:

    (RecipientTypeDetails -eq "UserMailbox") -and (IsInactiveMailbox -eq "false")

2 Replies

  • You should be able to use the IsInactiveMailbox property:

    (RecipientTypeDetails -eq "UserMailbox") -and (IsInactiveMailbox -eq "false")

    • chrishorsted720's avatar
      chrishorsted720
      Copper Contributor

      Apologies for not replying the adaptive scope took several days to populate. This appears to have now populated the scope with only User Mailboxes and has excluded Inactive Mailboxes.

Resources