Contents
How to include permissions in a site template?
SPRoleAssignment RoleAssignment = new SPRoleAssignment (” \\\\Accounting”, “email”, “name”, “notes”); //SPRoleAssignment’s other overloaded constructor takes SPPrincipal. That seems like a nicer option. Here is a method that could work for List.Item permissions thanks to Pranab Paul’s Blog
Permissions can be granted to individual users at site or site content levels. For information about available permissions, see User permissions and permission levels (SharePoint Server 2010).
How to apply a template to a SharePoint site?
Use a SharePoint site template when you create a new site, or apply a template to an existing site. After selecting the type of site you want to create, a window will appear asking you if you want to use a template – select Browse site templates. Select a site template that meets your business objective and then select Details, and then Apply.
Groups have no permission until they are assigned a permission level for a specific site or for specific site content. When you assign permission levels to SharePoint groups at the site collection level, by default, all sites and site content inherit those permission levels.
On some pages, you may need to click Site contents, then click Site settings. On the Site Settings page, under Users and Permissions, click Site Permissions. Select the check box next to the user or group to which you want to assign the new permission level. On the Permissions tab, click Edit User Permissions.
How to save a site as a template?
Save a site as a template to the solutions gallery Navigate to the top-level site of your site collection. Click Settings, and then click Site Settings. In the Site Actions section, click Save site as a template.