Is there any possible to enable SITE POLICY feature by using CSOM

%3CLINGO-SUB%20id%3D%22lingo-sub-1318967%22%20slang%3D%22en-US%22%3EIs%20there%20any%20possible%20to%20enable%20SITE%20POLICY%20feature%20by%20using%20CSOM%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1318967%22%20slang%3D%22en-US%22%3E%3CP%3EHi%20there%2C%3C%2FP%3E%3CP%3EIs%20there%20any%20possible%20to%20enable%20SITE%20POLICY%20(Site%20Closure)%20feature%20in%20each%20personal%20site%20by%20using%20CSOM%20when%20a%20personal%20site%20was%20created%20and%20setup%20some%20configuration%20such%20as%20when%20to%20delete%20the%20site%3F%3C%2FP%3E%3CP%3Ethanks%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1318967%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EDeveloper%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1322379%22%20slang%3D%22de-DE%22%3ESubject%3A%20Is%20there%20any%20possible%20to%20enable%20SITE%20POLICY%20feature%20by%20using%20CSOM%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1322379%22%20slang%3D%22de-DE%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F627872%22%20target%3D%22_blank%22%3E%40WEISH1195%3C%2FA%3E%20yes%2C%20create%20the%20site%20policy%20via%20the%20content%20type%20hub%20and%20then%20you%20can%20apply%20%2F%20add%20it%20via%20CSOM%20on%20sites.%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E
Occasional Contributor

Hi there,

Is there any possible to enable SITE POLICY (Site Closure) feature in each personal site by using CSOM when a personal site was created and setup some configuration such as when to delete the site?

thanks

2 Replies

@WEISH1195 yes, create the site policy via the content type hub and then you can apply / add it via CSOM on sites. 

@Jens Neumann thanks for your information?? I cannot understand what you mean. would you mind elaborating it or other steps for me for reference to.

 

Thanks