SharePoint Site Provisioning Applying Retention Policy

%3CLINGO-SUB%20id%3D%22lingo-sub-38727%22%20slang%3D%22en-US%22%3ESharePoint%20Site%20Provisioning%20Applying%20Retention%20Policy%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-38727%22%20slang%3D%22en-US%22%3E%3CP%3EHi%20everyone%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EWe%20are%20currently%20working%20on%20a%20site%20provisioning%20application%20for%20use%20in%20our%20company%20(internal)%20.%20We%26nbsp%3Bare%20leveraging%20the%20PNP%20engine%20in%20our%20application%20which%20we%20have%20deployed%20to%20Azure.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThere%20is%20a%20requirement%20to%20apply%20deletion%20and%20data%20retention%20policies%20to%20the%20sites%20when%20they%20are%20created.%20We%20are%20using%20SharePoint%20Online%20on%20the%20Office%20365%20Platform.%20As%20such%2C%20our%20data%20retention%20policie%20sare%20defined%20in%20the%20Data%20Governance%20section%20of%20the%20Security%20%26amp%3B%20Compliance%20center%20(%3CA%20href%3D%22https%3A%2F%2Fprotection.office.com).%26nbsp%3B%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fprotection.office.com).%26nbsp%3B%3C%2FA%3E%3CBR%20%2F%3E%3CBR%20%2F%3EHow%20can%20we%20add%20newly%20provisioned%20sites%20to%20a%20Retention%20policy%20via%20C%23.%20Is%20there%20a%20library%2FAPI%20we%20can%20use%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EWe%20are%20currently%20using%20a%20PowerShell%20script%20to%20apply%20sites%20to%20policies%20using%20the%26nbsp%3B%3CSTRONG%3EO365%20Security%20%26amp%3B%20Compliance%20Center%20cmdlets%3C%2FSTRONG%3E%20(%3CA%20href%3D%22https%3A%2F%2Ftechnet.microsoft.com%2FEN-US%2Flibrary%2Fmt587093(v%3Dexchg.160).aspx%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Ftechnet.microsoft.com%2FEN-US%2Flibrary%2Fmt587093(v%3Dexchg.160).aspx%3C%2FA%3E)%20but%20would%20like%20to%20move%20this%20functionality%20to%20be%20a%20part%20of%20the%20provisioning%20application.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ECan%20anyone%20suggest%20a%20method%20of%20achieving%20this%3F%20What%20is%20the%20suggested%20pattern%20and%20practice%20for%20managing%20retention%20policies%20with%20auto-provisioned%20sites%3F%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ERay%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-38727%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EDeveloper%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E
Highlighted
New Contributor

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

0 Replies