Hello,
We have a Microsoft Teams retention policy that is visible and enabled in Microsoft Purview, but we are unable to retrieve it using Compliance PowerShell.
Policy Details
Policy Name:
Microsoft Teams Data Retention Policy - 3 Year
Workloads:
- Teams chats
- Teams channel messages
Status in Purview:
Enabled (Success)
Issue
When running the following command:
PowerShell
Get-RetentionCompliancePolicy -Identity "Microsoft Teams Data Retention Policy - 3 Year"
Show more lines
we receive the error:
Plain Text
The operation couldn't be performed because object
'Microsoft Teams Data Retention Policy - 3 Year'
couldn't be found on 'FfoConfigurationSession'.
Show more lines
Connected successfully using:
PowerShell
Connect-IPPSSession
Show more lines
When running:
PowerShell
Get-RetentionCompliancePolicy | Select Name, Guid
Show more lines
the output does not include the Teams 3-Year policy. It only shows:
Plain Text
Microsoft Teams Data Retention Policy - 1 Year
Show more lines
Similarly, the following command does not show any rule associated with the Teams 3-Year policy:
PowerShell
Get-RetentionComplianceRule | Select Name, Policy
Show more lines
What We Need
- Is there a known issue where a retention policy is visible in the Purview portal but not returned through PowerShell?
- Is there an alternative PowerShell cmdlet to retrieve the policy details and assigned users?
- Does this indicate a backend synchronization issue between Purview and Compliance PowerShell?
- How can we export the users covered by this retention policy?
Any guidance would be greatly appreciated.
Thank you.Question:
Hello,
We have a Microsoft Teams retention policy that is visible and enabled in Microsoft Purview, but we are unable to retrieve it using Compliance PowerShell.
Policy Details
Policy Name:
Microsoft Teams Data Retention Policy - 3 Year
Workloads:
- Teams chats
- Teams channel messages
Status in Purview:
Enabled (Success)
Issue
When running the following command:
PowerShell
Get-RetentionCompliancePolicy -Identity "Microsoft Teams Data Retention Policy - 3 Year"
Show more lines
we receive the error:
Plain Text
The operation couldn't be performed because object
'Microsoft Teams Data Retention Policy - 3 Year'
couldn't be found on 'FfoConfigurationSession'.
Show more lines
Connected successfully using:
PowerShell
Connect-IPPSSession
Show more lines
When running:
PowerShell
Get-RetentionCompliancePolicy | Select Name, Guid
Show more lines
the output does not include the Teams 3-Year policy. It only shows:
Plain Text
Microsoft Teams Data Retention Policy - 1 Year
Show more lines
Similarly, the following command does not show any rule associated with the Teams 3-Year policy:
PowerShell
Get-RetentionComplianceRule | Select Name, Policy
Show more lines
What We Need
- Is there a known issue where a retention policy is visible in the Purview portal but not returned through PowerShell?
- Is there an alternative PowerShell cmdlet to retrieve the policy details and assigned users?
- Does this indicate a backend synchronization issue between Purview and Compliance PowerShell?
- How can we export the users covered by this retention policy?
Any guidance would be greatly appreciated.
Thank you.