MC1213770 Microsoft Purview | Data lifecycle Management cmdlet connectivity change
Primary service: Purview
ChangePilot summary
- New parameter
-EnableSearchOnlySessionrequired for Data Lifecycle Management cmdlets. - Admins must use Exchange Online PowerShell version 3.9.0 or later.
- Cmdlets affected include New-RetentionCompliancePolicy, Set-RetentionCompliancePolicy, New-RetentionComplianceRule, and Set-RetentionComplianceRule.
- No impact for users accessing Data Lifecycle Management via the Purview portal.
- Cmdlets remain incompatible with Certificate-Based Authentication (CBA).
History
Recorded changes
- The update removes the statement that cmdlets remain incompatible with Certificate-Based Authentication (CBA).
- The enforcement date for requiring the use of Exchange Online PowerShell v3.9.0 or later and including the `-EnableSearchOnlySession` parameter has been changed from January 31, 2026, to April 30, 2026.
-
- Additional cmdlets have been listed in the "What will happen:" section that require the use of the EnableSearchOnlySession parameter; these include ComplianceTag and ComplianceRetentionEvent related cmdlets.
- The core requirements for admins remain unchanged, as they still need to use Exchange Online PowerShell v3.9.0 or later with the required parameter.
Microsoft message
Updated May 18, 2026: We have updated the content. Thank you for your patience.
Introduction
Connectivity changes between cmdlets and Microsoft 365 services like SharePoint and Exchange now require a new parameter for improved security and modern authentication. Starting April 30, 2026, Admins must use Exchange Online PowerShell v3.9.0 or later and include the -EnableSearchOnlySession parameter when running Connect-IPPSession to execute Data Lifecycle Management cmdlets.
When this will happen:
Enforcement begins April 30, 2026.
How this affects your organization:
- Who is affected: Admins using Data Lifecycle Management cmdlets in Security & Compliance PowerShell.
- What will happen:
- You must use Exchange Online PowerShell v3.9.0 or later.
- You must include the
-EnableSearchOnlySessionparameter when runningConnect-IPPSession. - This applies to the following cmdlets:
New-RetentionCompliancePolicySet-RetentionCompliancePolicyNew-RetentionComplianceRuleSet-RetentionComplianceRuleNew-ComplianceTagSet-ComplianceTagRemove-ComplianceTagNew-ComplianceRetentionEventSet- ComplianceRetentionEventRemove- ComplianceRetentionEventNew-ComplianceRetentionEventTypeSet-ComplianceRetentionEventTypeRemove- ComplianceRetentionEventType
- No impact for users accessing Data Lifecycle Management through the Purview portal.
What you can do to prepare:
- Update scripts and workflows to include the
-EnableSearchOnlySessionparameter. - Ensure your organization is using Exchange Online PowerShell version 3.9.0 or later.
- For more information, visit: Learn about Data Lifecycle Management solutions in Microsoft Purview.
Compliance considerations:
No compliance considerations identified, review as appropriate for your organization.
More information
- learn.microsoft.com/microsoft-365/compliance/data-lifecycle-management
- learn.microsoft.com/powershell/module/exchangepowershell/connect-ippsession?view=exchange-ps
- learn.microsoft.com/powershell/module/exchangepowershell/new-retentioncompliancepolicy?view=exchange-ps
- learn.microsoft.com/powershell/module/exchangepowershell/new-retentioncompliancerule?view=exchange-ps
- learn.microsoft.com/powershell/module/exchangepowershell/set-retentioncompliancepolicy?view=exchange-ps
- learn.microsoft.com/powershell/module/exchangepowershell/set-retentioncompliancerule?view=exchange-ps
- learn.microsoft.com/powershell/exchange/exchange-online-powershell-v2?view=exchange-ps
Details
Services
- Purview
Category
- Stay informed
Microsoft tags
- Feature Update
- Admin Action