Export (0) Print
Expand All

SPWebApplication.GrantAccessToProcessIdentity Method

Grants the specified process identity account access to the Web application based on the parameters that are provided.

  Name Description
Public method GrantAccessToProcessIdentity(String) Grants the specified process identity account access to the Web application based on the username. Access to the process identity provides the permissions that are specified in the policy role parameter.
Public method GrantAccessToProcessIdentity(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.
Top

This method is useful when the specified account is used to access the object model outside of the impersonated context of a Web request.

Show:
© 2015 Microsoft