SharePoint permission architecture allows for site administrators and owners to assign various types of access to site users. Permissions assigned will be used by various parts of the system to determine whether a particular user has access to a certain feature or not.
The creation of custom permission levels and groups which will use those permission levels, is as important as the site hierarchy definition. After all, our PowerShell script created in the Provisioning site hierarchy during solution deployment recipe already creates site hierarchy, so defining your custom permissions on the site will be a nice add-on for our automated site deployment script.
In this example, we'll use PowerGUI to execute our script, so you'll need to log into your environment with administrative privileges and launch PowerGUI.