In this post we will discuss about what are site policies in SharePoint 2013. Also you can check out my previous posts on:
Site policies are not a new feature in SharePoint 2013, it was there in SharePoint 2010. But there are some advanced features in SharePoint 2013.
Through Site Policies you can control the life cycle of a SharePoint site. Suppose your requirement is that you want a site should automatically delete after 6 months of date of creation. Or you want it should start a workflow automatically and then it should delete the site. In this type of schenarious site policies will be helpful.
In SharePoint 2010, you could create only policies attached to content types or at the site collection level. But in SharePoint 2013, an new link on the name of Site Policies is available under Site Collection Administration in Site settings page.
Site policy has various option like:
- Do not close or delete the site automatically: The site owner must have to delete the site manually.
- Delete the site automatically: Here the site owner may close the site manually, but the site will be deleted automatically.
- Close the site automatically and delete the site automatically: Here the site will delete automatically and also requires to specify how long after its creation time the site will be closed.
- Run a workflow
to close the site, and delete the site automatically: It gives choices for how to delete the site automatically, and also requires you to specify a workflow to run. When the workflow finishes running, SharePoint 2013 closes the site.
To create a site policy, Go to the site settings and then click on Site Policies link under Site Collection Administrations. This will open the create site policy dialog box. There give a Name, Description, and chose different options and click on OK as shown in the figure below: