retention policy
6 TopicsMS Graph (or alternative) for M365/O365 Retention Policy management
Wondering if anyone is aware of whether we can get API access to the Security and Compliance Center. I'm not even sure what to call it, but I'm in need to manage retention policies that today are managed at https://compliance.microsoft.com, or via Connect-IPPSSession (from the EXO v2 PS module). What I'm trying to avoid is basic authentication with Connect-IPPSSession. I don't see anything for MS Graph from the v1.0/beta references, and I have already asked the Exchange Team in the comments for their blog post about the app-only/certificate authentication addition to Connect-ExchangeOnline (asked if they'll bring the same added functionality to Connect-IPPSSession). My use case is to unattended'ly script the addition/removal of certain users to/from the excluded mailboxes list for a given retention policy. This would be done interactively like this: Connect-IPPSSession <parameters of choice> Set-RetentionCompliancePolicy <policy> -AddExchangeLocationException <one,or,more,users> The reason is that a customer is using a retention policy to ensure their terminating users' mailboxes become Inactive Mailboxes. Since they rely so heavily on Inactive Mailboxes, auto-expanding archives are out of the question (as this takes away recoverability/restorability for Inactive Mailboxes). As a result, many mailboxes are hitting the 100GB Recoverable Items quota. So we have a manual process for now to exclude these mailboxes from the policy, then either wait or rush with Start-ManagedFolderAssistant to see the Recoverable Items consumption go down. We can easily use Connect-ExchangeOnline, Get-EXOMailbox, and Get-EXOMailboxStatistics with an Azure AD app and a certificate to figure out which mailboxes are approaching the 100GB. But we can't do the same with Connect-IPPSSession. I am eagerly awaiting either MS Graph support for this, or for Connect-IPPSSession to be updated. Neither of these things are even announced that I can see.Solved9.7KViews1like17Comments