Jan 11 2017 09:38 AM
Hi everyone,
We are currently working on a site provisioning application for use in our company (internal) . We are leveraging the PNP engine in our application which we have deployed to Azure.
There is a requirement to apply deletion and data retention policies to the sites when they are created. We are using SharePoint Online on the Office 365 Platform. As such, our data retention policie sare defined in the Data Governance section of the Security & Compliance center (https://protection.office.com).
How can we add newly provisioned sites to a Retention policy via C#. Is there a library/API we can use?
We are currently using a PowerShell script to apply sites to policies using the O365 Security & Compliance Center cmdlets (https://technet.microsoft.com/EN-US/library/mt587093(v=exchg.160).aspx) but would like to move this functionality to be a part of the provisioning application.
Can anyone suggest a method of achieving this? What is the suggested pattern and practice for managing retention policies with auto-provisioned sites?
Ray
Dec 13 2022 07:32 AM