Export (0) Print
Expand All
Expand Minimize

SPWeb.GetUserToken method

Retrieves the user token for the specified user.

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

public SPUserToken GetUserToken(
	string userName
)

Parameters

userName
Type: System.String

A string that contains the value of the LoginName property for an SPUser object.

Return value

Type: Microsoft.SharePoint.SPUserToken
The token for the specified user.

The current user must have SPBasePermissions.EnumeratePermissions.

Show:
© 2015 Microsoft