Share via


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)
Available in Sandboxed Solutions: No

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