Using Adaptive Policy Scopes to Apply M365 Retention to Shared, Resource, and Inactive Mailboxes

Published Jan 11 2022 10:49 AM 2,317 Views
Microsoft

Back in October 2021 we announced the public preview of an exciting new Microsoft Information Governance and Records Management feature called adaptive policy scopes. This feature provides advanced flexibility when applying retention policies and labels to user, site, and group locations in Microsoft 365.

 

Many organizations have regulatory, legal, or business requirements that demand different retention rules to apply to various departments, locations, and roles. Adaptive policy scopes help to provide the flexibility needed to achieve these requirements by allowing administrators to scope policies based on common attributes and properties from Azure AD (including those synced from on-premises AD in hybrid environments) or indexed properties from SharePoint Online sites.

 

However, there are also certain scenarios in which an organization may want to include or exclude locations from a policy based on more granular attributes such as the type or state of an object. This is particularly true in Exchange Online as several different types of mailboxes exist.  The most common types of mailboxes are user mailboxes and Microsoft 365 group mailboxes (which are used by Microsoft 365 Modern Groups and Microsoft Teams).  These mailbox types are easily targeted using adaptive policy scopes with user and group scopes, respectively.   

 

But there are several other types and states of mailboxes that organizations commonly use.  These can include shared mailboxes, resource mailboxes, and inactive mailboxes.  This blog post will review how an administrator can create scopes that include or exclude these other common types of mailboxes for maximum flexibility in applying Microsoft 365 retention policies and labels.

 

Shared mailbox retention with adaptive policy scopes

 

When adaptive policy scopes were in private preview one of the most common requests we received was to support shared mailboxes.  Shared mailboxes are used by organizations when multiple users need to access a single mailbox such as a support, receptionist, or department mailbox.  Unfortunately, although they were included in organization-wide retention policies using static scopes, we were unable to add shared mailbox support to adaptive policy scopes before it went to public preview.  We are excited to announce that support for shared mailboxes in adaptive policy scopes has recently been fully rolled out and you can now create scopes to target them in your tenant today.

 

Shared mailboxes share many similar attributes with user mailboxes.  There are several ways that you could effectively target them in adaptive policy scopes, such as using department, location, or even some custom identifiable information specified with CustomAttributes1-15. 

 

For example, let’s say you want to target all mailboxes that are in the legal department and have retention requirements.  You can use the department attribute and utilize one of the custom attributes to identify mailboxes that should be included in the scope, which are all available options in the simple query builder for adaptive policy scopes:

 

fig1.png

 

NOTE: If your organization synchronizes its on-premises directory with Azure AD, for synced objects you will need to configure most attributes on-premises and then synchronize any changes with Azure AD before querying them in adaptive policy scopes.

 

But, what if you want to include or exclude a shared mailbox in an adaptive policy scope based solely on the mailbox type?  This is where the advanced query builder can be very useful.

 

The advanced query builder is an alternate configuration option for the adaptive policy scopes wizard.  With user scopes (which target the types of mailboxes we are discussing in this blog), it uses OPATH to query objects.  You can access the advanced query builder by clicking the blue button at the top of the simple query builder screen:

 

advanced-query-builder.gif

 

With OPATH and the advanced query builder, you can use the IsShared property of the mailbox to be inclusive with True or exclusive with FalseExchange Online PowerShell can be used to test the OPATH query:

 

 

Get-Mailbox -Filter {IsShared -eq "True"}

Name                      Alias           Database                       ProhibitSendQuota
----                      -----           --------                       -----------------
TestSharedMailbox20211... testsharedma... NAMPR13DG031-db016             99 GB (106,300,44...
TestSharedMailbox22022... testsharedma... NAMPR13DG091-db016             99 GB (106,300,44...

 

 

Then, simply input the OPATH query into the advanced query builder within the adaptive policy scope wizard:

 

fig4.png

 

NOTE: For more examples of using OPATH and the advanced query builder, check out our recent webinar Building Advanced Queries for Users and Groups with Adaptive Policy Scopes.

 

Resource mailbox retention using adaptive policy scopes

 

Like shared mailboxes, resource mailboxes were also not available for use in adaptive policy scopes at the launch of the public preview, but now are available to use in your tenant today.  Resource mailboxes are used to help manage physical resources in Exchange Online.  There are two different types of resource mailboxes:

  • Room mailbox is a resource mailbox that is assigned to a physical location, such as a conference room.
  • Equipment mailbox is a mailbox assigned to a resource that is not location-specific, such as a projector.

 

Unlike shared mailboxes, however, resource mailboxes historically have never been included in Microsoft 365 retention policies.  Now, with adaptive policy scopes, you can create policies specifically for your organization’s room and equipment mailboxes (such as a policy to delete items after 1 year) or include them in your organization's existing retention policies.

 

Since resource mailboxes are very similar to shared mailboxes, most of the options an administrator has for filterable properties are the same.  For filtering by mailbox type using OPATH and the advanced query builder, you can use the property IsResource:

 

OPATH in Exchange Online PowerShell

 

 

Get-Mailbox -Filter {IsResource -eq "True"}

Name                      Alias           Database                       ProhibitSendQuota
----                      -----           --------                       -----------------
testEquipmentMailbox      testEquipmen... NAMPR13DG086-db021             99 GB (106,300,44...
testRoomMailbox           testRoomMailbox namPR13DG304-db141             99 GB (106,300,44...

 

 

The downside here, of course, is that you can’t explicitly tell the difference between a room mailbox and an equipment mailbox using just the IsResource property.  For this, you could use a custom attribute:

 

 

Get-Mailbox -Filter {IsResource -eq "True"} | ft -a Name, CustomAttribute9

Name                 CustomAttribute9
----                 ----------------
testEquipmentMailbox Equipment
testRoomMailbox      Room

Get-Mailbox -Filter {IsResource -eq "True" -and CustomAttribute9 -eq "Room"}

Name                      Alias           Database                       ProhibitSendQuota
----                      -----           --------                       -----------------
testRoomMailbox           testRoomMailbox namPR13DG304-db141             99 GB (106,300,44...

 

 

NOTE: We are working on enabling support for additional properties that could be used to identify different mailbox types without using a custom attribute.

 

OPATH in the advanced query builder

 

fig7.png

 

Inactive mailbox retention using adaptive policy scopes

 

Unlike shared and resource mailboxes, inactive mailboxes have been supported with adaptive policy scopes since the public preview release.  Inactive mailboxes are not a mailbox type; they are instead a mailbox state. 

 

When a user object is deleted from Azure AD (such as when an employee leaves the organization), the Microsoft 365 license once again becomes available.  But, if the associated mailbox has a legal or regulatory hold applied to it, we cannot delete the mailbox so, instead, it becomes inactive.

 

Before adaptive policy scopes, retention policies that applied to the entire organization (org-wide) for the Exchange location would automatically affect inactive mailboxes. However, there was no efficient way to have a retention policy specific to inactive mailboxes until now.  For example, an organization may choose to keep inactive mailbox data for 1 year after an employee leaves but keep the data of active employees for 5 years.

 

With adaptive policy scopes, you can target inactive mailboxes using the advanced query builder similarly to how you would for shared and resource mailboxes, but using the IsInactiveMailbox property:

 

OPATH in Exchange Online PowerShell

 

 

Get-Mailbox -IncludeInactiveMailbox -Filter {IsInactiveMailbox -eq "True"}

Name                      Alias           Database                       ProhibitSendQuota
----                      -----           --------                       -----------------
inactivemailboxTest       inactivemail... NAMPR13DG282-db075             99 GB (106,300,44...

 

 

NOTE: You can also filter on other properties such as department, location, and custom attributes however once a mailbox is made inactive, those properties cannot be changed.

 

Applying a scope to multiple mailbox types

 

One of the major benefits of adaptive policy scopes is how powerful they can be.  Administrators can create extremely complex queries allowing virtually any requirement to be achievable.  As a more advanced example, the following scope applies to shared mailboxes, room mailboxes, but excludes all inactive mailboxes:

 

OPATH in Exchange Online PowerShell

 

 

Get-Mailbox -IncludeInactiveMailbox -Filter {((IsResource -eq "True" -and ResourceType -eq "Room") -or (IsShared -eq "True")) -and (IsInactiveMailbox -eq "False")}

Name                      Alias           Database                       ProhibitSendQuota
----                      -----           --------                       -----------------
TestSharedMailbox22022... testsharedma... NAMPR13DG091-db016             99 GB (106,300,44...
TestSharedMailbox20211... testsharedma... NAMPR13DG031-db016             99 GB (106,300,44...
testRoomMailbox           testRoomMailbox namPR13DG304-db141             99 GB (106,300,44...

 

 

OPATH in the advanced query builder

 

fig10.png

 

Validating Advanced Queries in OPATH

 

We are working on providing some validation within the adaptive policy scope wizard, however, as of right now there is no validation to verify your query is accurate.  To help fill the gap, I’ve created a script that can be used to validate OPATH queries for user and group scopes.

 

Additionally, as we previously stated, we hosted a recent webinar that discussed building advanced queries for user and group scopes.

 

fig11.pngfig12.png

 

FAQ

 

What scope type should I use for shared, resource, or inactive mailboxes?

For shared, resource, and inactive mailboxes, you should use the “user” scope type as they all refer to user objects in Azure AD.

 

Do I need to use the advanced query builder and OPATH for shared, resource, and inactive mailboxes?

By default, all mailbox types are included in the scope.  So, if you don't need to exclude any of these mailbox types, you can use the simple query builder provided the properties needed are available.  If you do need to exclude one or more of these mailbox types or if the simple query builder doesn't have a property that you need to filter, you will need to use OPATH and the advanced query builder as IsShared, IsResource, and IsInactiveMailbox properties are not currently available in the simple query builder.

 

What if I have already created scopes for my organization but didn’t take into consideration shared, resource or inactive mailboxes?

If your existing scope doesn’t already exclude the types of mailboxes you don’t want included you should consider modifying the scopes using the above properties.  If your existing scope uses a query built with the simple query builder, you will need to convert your query to OPATH and use the advanced query builder.

 

Do shared and resource mailboxes need to be licensed to use with adaptive policy scopes?

Yes, as with user mailboxes, shared and resource mailboxes need to have an applicable license applied for compliant usage with adaptive policy scopes.  As of the publish date of this blog these licenses include the following:

  • Microsoft 365 E5/A5/G5
  • Microsoft 365 E5/A5/G5 Compliance
  • Microsoft 365 E5/A5 Information Protection and Governance
  • Microsoft 365 F5 Compliance
  • Microsoft 365 F5 Security and Compliance
  • Office 365 E5/A5/G5

 

How do you appropriately license an inactive mailbox?

Inactive mailboxes must have the appropriate license assigned to the mailbox before making it inactive.  Once the mailbox is made inactive the license will be free to use elsewhere. For more information, see create an inactive mailbox.

1 Comment
%3CLINGO-SUB%20id%3D%22lingo-sub-3053641%22%20slang%3D%22en-US%22%3EUsing%20Adaptive%20Policy%20Scopes%20to%20Apply%20M365%20Retention%20to%20Shared%2C%20Resource%2C%20and%20Inactive%20Mailboxes%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-3053641%22%20slang%3D%22en-US%22%3E%3CP%3EBack%20in%20October%202021%20%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fsecurity-compliance-and-identity%2Fannouncing-adaptive-policy-scopes-for-microsoft-365-records%2Fba-p%2F2857532%22%20target%3D%22_blank%22%3Ewe%20announced%20the%20public%20preview%3C%2FA%3E%20of%20an%20exciting%20new%20Microsoft%20Information%20Governance%20and%20Records%20Management%20feature%20called%20%3CSTRONG%3Eadaptive%20policy%20scopes%3C%2FSTRONG%3E%20which%20provide%20advanced%20flexibility%20when%20applying%20retention%20policies%20and%20labels%20to%20user%2C%20site%20and%20group%20locations%20in%20Microsoft%20365.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EMany%20organizations%20have%20regulatory%2C%20legal%2C%20or%20business%20requirements%20that%20demand%20different%20retention%20rules%20to%20apply%20to%20various%20departments%2C%20locations%2C%20and%20roles.%20Adaptive%20policy%20scopes%20helps%20to%20provide%20the%20flexibility%20needed%20to%20achieve%20this%20by%20allowing%20administrators%20to%20scope%20policies%20based%20on%20common%20attributes%20and%20properties%20from%20Azure%20AD%20(including%20those%20synced%20from%20on-premises%20AD%20in%20hybrid%20environments)%20or%20indexed%20properties%20from%20SharePoint%20Online%20sites.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EHowever%2C%20there%20are%20also%20certain%20scenarios%20in%20which%20an%20organization%20may%20want%20to%20include%20or%20exclude%20from%20a%20policy%20based%20on%20more%20granular%20attributes%20such%20as%20the%20type%20or%20state%20of%20an%20object%2C%20particularly%20in%20Exchange%20Online%20as%20several%20different%20types%20of%20mailboxes%20exist.%26nbsp%3B%20The%20most%20common%20types%20of%20mailboxes%20are%20user%20mailboxes%20and%20Microsoft%20365%20group%20mailboxes%20(which%20are%20used%20by%20Microsoft%20365%20Modern%20Groups%20and%20Microsoft%20Teams).%26nbsp%3B%20These%20mailbox%20types%20are%20easily%20targeted%20using%20adaptive%20policy%20scopes%20with%20user%20and%20group%20scopes%2C%20respectively.%26nbsp%3B%20%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EBut%20there%20are%20several%20other%20types%20and%20states%20of%20mailboxes%20that%20are%20commonly%20used%20by%20organizations%20%E2%80%93%20shared%20mailboxes%2C%20resource%20mailboxes%20and%20inactive%20mailboxes.%26nbsp%3B%20This%20blog%20post%20will%20go%20over%20how%20an%20administrator%20can%20create%20scopes%20that%20include%20or%20exclude%20these%20other%20common%20types%20of%20mailboxes%20for%20maximum%20flexibility%20in%20applying%20Microsoft%20365%20retention%20policies%20and%20labels.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CH2%20id%3D%22toc-hId-334624696%22%20id%3D%22toc-hId-336528444%22%3EShared%20Mailboxes%3C%2FH2%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EWhen%20adaptive%20policy%20scopes%20was%20in%20private%20preview%20one%20of%20the%20most%20common%20requests%20we%20received%20was%20to%20support%20shared%20mailboxes.%26nbsp%3B%20%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fmicrosoft-365%2Fadmin%2Femail%2Fabout-shared-mailboxes%3Fview%3Do365-worldwide%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3EShared%20mailboxes%3C%2FA%3E%20are%20used%20by%20organizations%20when%20multiple%20users%20need%20to%20access%20a%20single%20mailbox%20such%20as%20a%20support%2C%20receptionist%2C%20or%20department%20mailbox.%26nbsp%3B%20Unfortunately%2C%20although%20they%20were%20included%20in%20organization%20wide%20retention%20policies%20using%20static%20scopes%2C%20we%20were%20unable%20to%20add%20shared%20mailbox%20support%20to%20adaptive%20policy%20scopes%20before%20it%20went%20to%20public%20preview%20%E2%80%93%20but%20we%20are%20excited%20to%20announce%20that%20support%20for%20shared%20mailboxes%20in%20adaptive%20policy%20scopes%20has%20recently%20been%20fully%20rolled%20out.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EShared%20mailboxes%20share%20many%20of%20the%20same%20attributes%20that%20user%20mailboxes%20have%20so%20there%20are%20several%20ways%20that%20you%20could%20effectively%20target%20them%20in%20adaptive%20policy%20scopes%2C%20such%20as%20using%20department%2C%20location%2C%20or%20even%20some%20custom%20identifiable%20information%20specified%20with%20CustomAttributes1-15.%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EFor%20example%2C%20let%E2%80%99s%20say%20you%20want%20to%20target%20all%20mailboxes%20that%20are%20in%20the%20legal%20department%20and%20have%20retention%20requirements.%26nbsp%3B%20You%20can%20use%20the%20department%20attribute%20and%20utilize%20one%20of%20the%20custom%20attributes%20to%20identify%20mailboxes%20that%20should%20be%20included%20in%20the%20scope%2C%20which%20are%20all%20available%20options%20in%20the%20simple%20query%20builder%20for%20adaptive%20policy%20scopes%3A%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%20class%3D%22lia-indent-padding-left-30px%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22fig1.png%22%20style%3D%22width%3A%20624px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F337780iDA3B4019E565AB23%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22fig1.png%22%20alt%3D%22fig1.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CH5%20class%3D%22lia-indent-padding-left-30px%22%20id%3D%22toc-hId-1726250748%22%20id%3D%22toc-hId-1728154496%22%3E%26nbsp%3B%3C%2FH5%3E%0A%3CP%20class%3D%22lia-indent-padding-left-30px%22%3E%3CSTRONG%3ENOTE%3A%26nbsp%3B%3C%2FSTRONG%3E%3CEM%3EIf%20your%20organization%20synchronizes%20it%E2%80%99s%20on-premises%20directory%20with%20Azure%20AD%2C%20for%20synced%20objects%20most%20attributes%20will%20need%20to%20be%20configured%20on-premises%20and%20synchronized%20before%20using%20in%20adaptive%20policy%20scopes.%3C%2FEM%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EBut%2C%20what%20if%20you%20want%20to%20include%20or%20exclude%20a%20shared%20mailbox%20in%20an%20adaptive%20policy%20scope%20based%20solely%20on%20the%20mailbox%20type%3F%26nbsp%3B%20This%20is%20where%20the%20advanced%20query%20builder%20can%20be%20very%20useful.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EThe%20advanced%20query%20builder%20is%20an%20alternate%20configuration%20option%20for%20the%20adaptive%20policy%20scopes%20wizard.%20%26nbsp%3BWith%20user%20scopes%20(which%20target%20the%20types%20of%20mailboxes%20we%20are%20discussing%20in%20this%20blog)%2C%20it%20uses%20%3CA%20href%3D%22https%3A%2F%2Faka.ms%2Fopath-filter%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3EOPATH%3C%2FA%3E%20to%20query%20objects.%26nbsp%3B%20You%20can%20access%20the%20advanced%20query%20builder%20by%20clicking%20the%20blue%20button%20at%20the%20top%20of%20the%20simple%20query%20builder%20screen%3A%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%20class%3D%22lia-indent-padding-left-30px%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22fig2.png%22%20style%3D%22width%3A%20624px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F337783i1D46259DF9804517%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22fig2.png%22%20alt%3D%22fig2.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%20class%3D%22lia-indent-padding-left-30px%22%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EWith%20OPATH%20and%20the%20advanced%20query%20builder%2C%20you%20can%20use%20the%20%3CEM%3E%3CSTRONG%3EIsShared%3C%2FSTRONG%3E%3C%2FEM%3E%20property%20of%20the%20mailbox%20to%20be%20inclusive%20with%20%3CEM%3ETrue%3C%2FEM%3E%20or%20exclusive%20with%20%3CEM%3EFalse%3C%2FEM%3E.%26nbsp%3B%20Exchange%20Online%20PowerShell%20can%20be%20used%20to%20test%20the%20OPATH%20query%3A%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%20class%3D%22lia-indent-padding-left-30px%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22fig3.png%22%20style%3D%22width%3A%20624px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F337785i961CAD1EF1CFF039%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22fig3.png%22%20alt%3D%22fig3.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%20class%3D%22lia-indent-padding-left-30px%22%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EThen%2C%20simply%20input%20the%20OPATH%20query%20into%20the%20advanced%20query%20builder%20within%20the%20adaptive%20policy%20scope%20wizard%3A%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%20class%3D%22lia-indent-padding-left-30px%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22fig4.png%22%20style%3D%22width%3A%20624px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F337787i835C66961AFD8109%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22fig4.png%22%20alt%3D%22fig4.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%20class%3D%22lia-indent-padding-left-30px%22%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%20class%3D%22lia-indent-padding-left-30px%22%3E%3CSTRONG%3ENOTE%3A%3C%2FSTRONG%3E%26nbsp%3B%3CEM%3EFor%20more%20examples%20of%20using%20OPATH%20and%20the%20advanced%20query%20builder%2C%20check%20out%20our%20recent%20webinar%20%3CA%20href%3D%22https%3A%2F%2Fmipc.eventbuilder.com%2Fevent%2F52683%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noreferrer%22%3EBuilding%20Advanced%20Queries%20for%20Users%20and%20Groups%20with%20Adaptive%20Policy%20Scopes%3C%2FA%3E.%3C%2FEM%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CH2%20id%3D%22toc-hId-1014683066%22%20id%3D%22toc-hId-1016586814%22%3EResource%20Mailboxes%3C%2FH2%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3ESimilar%20to%20shared%20mailboxes%2C%20resource%20mailboxes%20were%20also%20not%20available%20for%20use%20in%20adaptive%20policy%20scopes%20at%20the%20launch%20of%20the%20public%20preview%2C%20but%20now%20are%20available.%26nbsp%3B%20%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fexchange%2Frecipients-in-exchange-online%2Fmanage-resource-mailboxes%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3EResource%20mailboxes%3C%2FA%3E%20are%20used%20to%20help%20manage%20physical%20resources%20in%20Exchange%20Online.%26nbsp%3B%20There%20are%20two%20different%20types%20of%20resource%20mailboxes%3A%3C%2FP%3E%0A%3CUL%3E%0A%3CLI%3E%3CSTRONG%3ERoom%20mailbox%3C%2FSTRONG%3E%20is%20a%20resource%20mailbox%20that%20is%20assigned%20to%20a%20physical%20location%2C%20such%20as%20a%20conference%20room.%3C%2FLI%3E%0A%3CLI%3E%3CSTRONG%3EEquipment%20mailbox%3C%2FSTRONG%3E%20is%20a%20mailbox%20that%20is%20assigned%20to%20a%20resource%20that%20is%20not%20location%20specific%2C%20such%20as%20a%20projector.%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EUnlike%20shared%20mailboxes%2C%20however%2C%20resource%20mailboxes%20historically%20have%20never%20been%20included%20in%20Microsoft%20365%20retention%20policies.%26nbsp%3B%20Now%2C%20with%20adaptive%20policy%20scopes%2C%20you%20can%20create%20policies%20specifically%20for%20your%20organization%E2%80%99s%20room%20and%20equipment%20mailboxes%20(such%20as%20a%20policy%20to%20delete%20items%20after%201%20year)%2C%20or%20include%20them%20in%20your%20organizations%20existing%20retention%20policies.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3ESince%20resource%20mailboxes%20are%20very%20similar%20to%20shared%20mailboxes%2C%20most%20of%20the%20options%20an%20administrator%20has%20for%20filterable%20properties%20are%20the%20same.%26nbsp%3B%20For%20filtering%20by%20mailbox%20type%20using%20OPATH%20and%20the%20advanced%20query%20builder%2C%20you%20can%20use%20the%20property%20%3CEM%3E%3CSTRONG%3EIsResource%3C%2FSTRONG%3E%3C%2FEM%3E%3A%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%20class%3D%22lia-indent-padding-left-30px%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22fig5.png%22%20style%3D%22width%3A%20624px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F337788i843D300C501CC4D0%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22fig5.png%22%20alt%3D%22fig5.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%20class%3D%22lia-indent-padding-left-30px%22%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EThe%20downside%20here%2C%20of%20course%2C%20is%20that%20you%20can%E2%80%99t%20explicitly%20tell%20the%20difference%20between%20a%20room%20mailbox%20and%20an%20equipment%20mailbox%20using%20just%20the%20%3CEM%3E%3CSTRONG%3EIsResource%3C%2FSTRONG%3E%3C%2FEM%3E%20property.%20%26nbsp%3BFor%20this%2C%20you%20could%20use%20a%20custom%20attribute%3A%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%20class%3D%22lia-indent-padding-left-30px%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22fig6.png%22%20style%3D%22width%3A%20624px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F337789i78C2F876456F0A52%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22fig6.png%22%20alt%3D%22fig6.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%20class%3D%22lia-indent-padding-left-30px%22%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%20class%3D%22lia-indent-padding-left-30px%22%3E%3CSTRONG%3ENOTE%3A%3C%2FSTRONG%3E%26nbsp%3B%3CEM%3EWe%20are%20working%20on%20enabling%20support%20for%20the%20%3CSTRONG%3ERecipientTypeDetails%3C%2FSTRONG%3E%20property%20which%20allows%20distinction%20between%20all%20of%20the%20different%20mailbox%20types%2C%20however%20it%20is%20not%20currently%20supported.%3C%2FEM%3E%3C%2FP%3E%0A%3CP%20class%3D%22lia-indent-padding-left-30px%22%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%20class%3D%22lia-indent-padding-left-30px%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22fig7.png%22%20style%3D%22width%3A%20624px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F337790i17188DF135FE1ED0%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22fig7.png%22%20alt%3D%22fig7.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%20class%3D%22lia-indent-padding-left-30px%22%3E%26nbsp%3B%3C%2FP%3E%0A%3CH2%20id%3D%22toc-hId--792771397%22%20id%3D%22toc-hId--790867649%22%3EInactive%20Mailboxes%3C%2FH2%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EUnlike%20shared%20and%20resource%20mailboxes%2C%20inactive%20mailboxes%20have%20been%20supported%20with%20adaptive%20policy%20scopes%20since%20the%20public%20preview%20release.%26nbsp%3B%20%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fmicrosoft-365%2Fcompliance%2Finactive-mailboxes-in-office-365%3Fview%3Do365-worldwide%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3EInactive%20mailboxes%3C%2FA%3E%20are%20not%20a%20mailbox%20type%3B%20they%20are%20instead%20a%20mailbox%20state.%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EWhen%20a%20user%20object%20is%20deleted%20from%20Azure%20AD%20(such%20as%20when%20an%20employee%20leaves%20the%20organization)%2C%20the%20Microsoft%20365%20license%20once%20again%20becomes%20available.%26nbsp%3B%20But%2C%20if%20the%20associated%20mailbox%20has%20some%20kind%20of%20legal%20or%20regulatory%20hold%20applied%20to%20it%2C%20we%20cannot%20delete%20the%20mailbox%20so%2C%20instead%2C%20it%20becomes%20inactive.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EBefore%20adaptive%20policy%20scopes%2C%20retention%20policies%20that%20applied%20to%20the%20entire%20organization%20(org%20wide)%20for%20the%20Exchange%20location%20would%20automatically%20affect%20inactive%20mailboxes.%20However%2C%20there%20was%20no%20efficient%20way%20to%20have%20a%20retention%20policy%20specific%20to%20inactive%20mailboxes%20until%20now.%26nbsp%3B%20For%20example%2C%20an%20organization%20may%20choose%20to%20keep%20inactive%20mailbox%20data%20for%201%20year%20after%20an%20employee%20leaves%2C%20but%20keep%20the%20data%20of%20active%20employees%20for%205%20years.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EWith%20adaptive%20policy%20scopes%2C%20you%20can%20target%20inactive%20mailboxes%20using%20the%20advanced%20query%20builder%20similarly%20to%20how%20you%20would%20for%20shared%20and%20resource%20mailboxes%2C%20but%20using%20the%20%3CEM%3E%3CSTRONG%3EIsInactiveMailbox%3C%2FSTRONG%3E%20%3C%2FEM%3Eproperty%3A%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%20class%3D%22lia-indent-padding-left-30px%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22fig8.png%22%20style%3D%22width%3A%20624px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F337791iD39BDE05CC3D2248%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22fig8.png%22%20alt%3D%22fig8.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%20class%3D%22lia-indent-padding-left-30px%22%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%20class%3D%22lia-indent-padding-left-30px%22%3E%3CSTRONG%3ENOTE%3A%3C%2FSTRONG%3E%26nbsp%3B%3CEM%3EYou%20can%20also%20filter%20on%20other%20properties%20such%20as%20department%2C%20location%20and%20custom%20attributes%20however%20once%20a%20mailbox%20is%20made%20inactive%2C%20those%20properties%20cannot%20be%20changed.%3C%2FEM%3E%3C%2FP%3E%0A%3CP%20class%3D%22lia-indent-padding-left-30px%22%3E%26nbsp%3B%3C%2FP%3E%0A%3CH2%20id%3D%22toc-hId-1694741436%22%20id%3D%22toc-hId-1696645184%22%3EApplying%20a%20scope%20to%20multiple%20mailbox%20types%3C%2FH2%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EAs%20a%20more%20advanced%20example%2C%20if%20I%20wanted%20to%20create%20a%20scope%20that%20applies%20to%20shared%20mailboxes%2C%20room%20mailboxes%2C%20but%20exclude%20any%20inactive%20mailboxes%2C%20I%20could%20use%3A%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%20class%3D%22lia-indent-padding-left-30px%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22fig9.png%22%20style%3D%22width%3A%20624px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F337792i6CCFA217C7D6F6AA%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22fig9.png%22%20alt%3D%22fig9.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%20class%3D%22lia-indent-padding-left-30px%22%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%20class%3D%22lia-indent-padding-left-30px%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22fig10.png%22%20style%3D%22width%3A%20624px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F337793iB53CA31AF6466528%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22fig10.png%22%20alt%3D%22fig10.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%20class%3D%22lia-indent-padding-left-30px%22%3E%26nbsp%3B%3C%2FP%3E%0A%3CH2%20id%3D%22toc-hId--112713027%22%20id%3D%22toc-hId--110809279%22%3EValidating%20Advanced%20Queries%20in%20OPATH%3C%2FH2%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EWe%20are%20working%20on%20providing%20some%20validation%20within%20the%20adaptive%20policy%20scope%20wizard%2C%20however%20as%20of%20right%20now%20there%20is%20no%20validation%20to%20verify%20your%20query%20is%20accurate.%26nbsp%3B%20In%20order%20to%20help%20fill%20the%20gap%2C%20I%E2%80%99ve%20created%20a%20script%20that%20can%20be%20used%20to%20validate%20OPATH%20queries.%26nbsp%3B%3C%2FP%3E%0A%3CP%3EYou%20can%20view%20and%20download%20it%20from%20here%3A%20%3CA%20href%3D%22https%3A%2F%2Fbrenle.github.io%2FMIGScripts%2Fexo%2Fvalidate-adaptivescopesopathquery%2F%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noreferrer%22%3EValidate-AdaptiveScopesOPATHQuery.ps1%20-%20MIGScripts%20(brenle.github.io)%3C%2FA%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EAdditionally%2C%20we%20as%20previously%20stated%2C%20we%20hosted%20a%20recent%20webinar%20that%20discussed%20building%20advanced%20queries%20for%20user%20and%20group%20scopes.%20Take%20a%20look%20at%20it%20here%3A%20%3CA%20href%3D%22https%3A%2F%2Fmipc.eventbuilder.com%2Fevent%2F52683%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noreferrer%22%3EBuilding%20Advanced%20Queries%20for%20Users%20and%20Groups%20with%20Adaptive%20Policy%20Scopes%3C%2FA%3E.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%20class%3D%22lia-indent-padding-left-30px%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22fig11.png%22%20style%3D%22width%3A%20624px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F337795iE4F91E7B8AFF52D4%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22fig11.png%22%20alt%3D%22fig11.png%22%20%2F%3E%3C%2FSPAN%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22fig12.png%22%20style%3D%22width%3A%20624px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F337796i88C943514880ABF0%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22fig12.png%22%20alt%3D%22fig12.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%20class%3D%22lia-indent-padding-left-30px%22%3E%26nbsp%3B%3C%2FP%3E%0A%3CH2%20id%3D%22toc-hId--1920167490%22%20id%3D%22toc-hId--1918263742%22%3EFAQ%3C%2FH2%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSTRONG%3EWhat%20scope%20type%20should%20I%20use%20for%20shared%2C%20resource%20or%20inactive%20mailboxes%3F%3C%2FSTRONG%3E%3C%2FP%3E%0A%3CP%3EFor%20shared%2C%20resource%20and%20inactive%20mailboxes%2C%20you%20should%20use%20the%20%E2%80%9Cuser%E2%80%9D%20scope%20type%20as%20they%20all%20refer%20back%20to%20user%20objects%20in%20Azure%20AD.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSTRONG%3EWhat%20if%20I%20have%20already%20created%20scopes%20for%20my%20organization%20but%20didn%E2%80%99t%20take%20into%20consideration%20shared%2C%20resource%20or%20inactive%20mailboxes%3F%3C%2FSTRONG%3E%3C%2FP%3E%0A%3CP%3EBy%20default%2C%20all%20mailbox%20types%20are%20included%20in%20the%20scope.%20So%20if%20your%20query%20doesn%E2%80%99t%20already%20exclude%20the%20types%20you%20don%E2%80%99t%20want%20included%20in%20the%20scope%2C%20you%20should%20consider%20modifying%20the%20scopes%20using%20the%20above%20properties.%26nbsp%3B%20You%20may%20need%20to%20convert%20your%20query%20to%20an%20advanced%20query%20as%20the%20%3CEM%3E%3CSTRONG%3EIsShared%3C%2FSTRONG%3E%3C%2FEM%3E%2C%20%3CEM%3E%3CSTRONG%3EIsResource%3C%2FSTRONG%3E%3C%2FEM%3E%20and%20%3CEM%3E%3CSTRONG%3EIsInactiveMailbox%3C%2FSTRONG%3E%20%3C%2FEM%3Eproperties%20are%20not%20available%20in%20the%20simple%20query%20builder.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSTRONG%3EDo%20shared%20and%20resource%20mailboxes%20need%20to%20be%20licensed%20to%20use%20with%20adaptive%20policy%20scopes%3F%3C%2FSTRONG%3E%3C%2FP%3E%0A%3CP%3EYes%2C%20as%20with%20user%20mailboxes%2C%20shared%20and%20resource%20mailboxes%20need%20to%20have%20an%20applicable%20license%20applied%20for%20compliant%20usage%20with%20adaptive%20policy%20scopes%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSTRONG%3EHow%20do%20you%20appropriately%20license%20an%20inactive%20mailbox%3F%3C%2FSTRONG%3E%3C%2FP%3E%0A%3CP%3EInactive%20mailboxes%20must%20have%20the%20appropriate%20license%20assigned%20to%20the%20mailbox%20before%20making%20inactive.%26nbsp%3B%20Once%20made%20inactive%20the%20license%20will%20be%20free%20to%20use%20elsewhere.%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-TEASER%20id%3D%22lingo-teaser-3053641%22%20slang%3D%22en-US%22%3E%3CP%3EIn%20this%20blog%20we'll%20show%20you%20how%20you%20can%20use%20adaptive%20policy%20scopes%20to%20include%20or%20exclude%20shared%2C%20resource%2C%20and%20inactive%20mailboxes%20from%20Microsoft%20365%20retention%20policies%20and%20labels.%3C%2FP%3E%3C%2FLINGO-TEASER%3E%3CLINGO-LABS%20id%3D%22lingo-labs-3053641%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3ERecords%20Management%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3ECompliance%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EMicrosoft%20Information%20Governance%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E
Co-Authors
Version history
Last update:
‎Jan 11 2022 10:46 AM
Updated by: