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 a way to retrieve the users for Skype for Business in enclosed on red section in the image above.
Try this:
Get-RetentionCompliancePolicy -identity "SfB_Retention" -distributiondetail | Select-Object SkypeLocation