Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Question
Monday, April 24, 2017 12:02 PM
Is there a way to get the list of users for which retention policy has been enabled based on the content type i.e: Email, Skype for Business, Onedrive and et al.? There are these commands to see the policy and rule but I could not find anyway to get the content and the list of users for which retention policy has been enabled.
Basically, I want to retrieve the users for Skype for Business in enclosed on red section in the image above.
Thanks
Sameer
All replies (7)
Thursday, April 27, 2017 8:04 AM
Hi Sameer,
Based on my research, the users or mailboxes that applied the Retention Policy from Office 365 Security & Compliance Center cannot be retrieved from PowerShell. I also did a test in Office 365:
Created a retention Policy named winni678 with Exchange email location and Skype for Business in Office 365 Security & Compliance Center:
But the Exchange Location and Lync location have no information returned when using the PowerShell command:
If I created a retention policy using the New-RetentionCompliancePolicy cmdlet, the results are the same. There is no location information returned with PowerShell.
Regards,
Winnie Liang
Please remember to mark the replies as answers if they help.
If you have feedback for TechNet Subscriber Support, contact [email protected].
Thursday, April 27, 2017 2:02 PM
Hi Winnie Liang,
Yup I searched over several places including the one you have highlighted., but could not find any way to retrieve the info.
Since office 365 is already doing it as shown in the screen shot, I wonder how this is achieved in the UI.
Thanks
Sameer
Friday, May 5, 2017 5:06 AM
Hi Winnie Liang,
Yup I searched over several places including the one you have highlighted., but could not find any way to retrieve the info.
Since office 365 is already doing it as shown in the screen shot, I wonder how this is achieved in the UI.
Thanks
Sameer
Hi Sameer,
I am not quite sure about it. I suggest you can make a confirmation in Office 365 for Business forum to get more help.
This forum focuses on general discussion for Office 365 ProPlus which is the version of Office that comes with many Office 365 plans. To contact Office 365 for Business, please go to:
https://answers.microsoft.com/en-us/msoffice/forum/msoffice_o365admin-mso_security-mso_o365b
The users there is familiar with Office 365 for Business Security and Compliance. Maybe they can give more suggestion on your issue :)
Regards,
Winnie Liang
Please remember to mark the replies as answers if they help.
If you have feedback for TechNet Subscriber Support, contact [email protected].
Tuesday, May 9, 2017 4:59 AM
Thanks Winnie!! . I will try to get my answer in the forum you have suggested.
Regards
Sameer
Wednesday, May 10, 2017 1:53 AM
Thanks Winnie!! . I will try to get my answer in the forum you have suggested.
Regards
Sameer
You are welcome!
Have a nice day :)
Regards,
Winnie Liang
Please remember to mark the replies as answers if they help.
If you have feedback for TechNet Subscriber Support, contact [email protected].
Tuesday, January 9, 2018 2:00 PM
Sameer,
Were you able to get an answer for this? I am now trying to do the same thing and am unable to find a powershell command that works and there is no way to export the list that I have found.
Thanks.
Wednesday, March 28, 2018 4:05 PM
Here is what I had to do to get a list of mailboxes within a policy:
$Mailboxes = (Get-RetentionCompliancePolicy -Identity "Policy" -DistributionDetail | Select -ExpandProperty ExchangeLocation)
$(Foreach ($policyLocation in $Mailboxes) {
New-Object PSObject -Property @{
DisplayName = $policyLocation.DisplayName
UPN = $policyLocation.name
}
} ) | select-object -Property DisplayName, UPN | Export-Csv -Path "PolicyUsers.csv" -NoTypeInformation
Steve