Export (0) Print
Expand All

SPWebApplication.GrantAccessToProcessIdentity method (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.

Namespace:  Microsoft.SharePoint.Administration
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

public void GrantAccessToProcessIdentity(
	string username
)

Parameters

username
Type: System.String

A string that contains the name of the user.

This method allows you to use an account to access the SharePoint object model from your own application.

Community Additions

ADD
Show:
© 2014 Microsoft