This script can grant or revoke user permission for all sites in a site collection in Microsoft SharePoint Server 2010.

In a real world, grant user permission is a basic task for SharePoint Administrators. And the sites in a site collection usually have unique permission, if we need to grant the user permission for each site manually, it will take a lot of time to complete and easily miss some sites, so the SharePoint Administrators are finding a way to reduce their workload.

image image

You can find more All-In-One Script Framework script samples at