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)

Syntax

'Declaration
Public Sub GrantAccessToProcessIdentity ( _
    username As String _
)
'Usage
Dim instance As SPWebApplication
Dim username As String

instance.GrantAccessToProcessIdentity(username)
public void GrantAccessToProcessIdentity(
    string username
)

Parameters

  • username
    Type: System.String

    A string that contains the name of the user.

Remarks

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

See also

Reference

SPWebApplication class

SPWebApplication members

GrantAccessToProcessIdentity overload

Microsoft.SharePoint.Administration namespace