SPWebApplication.GrantAccessToProcessIdentity Method (String, SPPolicyRoleType)
Grants the specified process identity account access to the Web application based on the name of the user and the level of access. Access to the process identity provides full control of the SharePoint Web application.
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: No
- Type: System.String
A string that contains the name of the user.
- Type: Microsoft.SharePoint.Administration.SPPolicyRoleType
An SPPolicyRoleType object that represents the policy role to be globally applied to the specified user.