This topic has not yet been rated - Rate this topic

SPWeb.GetUserToken Method

SharePoint 2010

Retrieves the user token for the specified user.

Namespace:  Microsoft.SharePoint
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: No
Available in SharePoint Online
[SubsetCallableExcludeMemberAttribute(SubsetCallableExcludeMemberType.UnsupportedSPType)]
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.

Did you find this helpful?
(1500 characters remaining)
Community Content Add
Annotations FAQ