GetUserEffectivePermissionInfo Method
TOC
Collapse the table of content
Expand the table of content

SPWeb.GetUserEffectivePermissionInfo Method

Gets the effective permissions that the specified user has and the role assignments related to this user within this scope.

Namespace:  Microsoft.SharePoint
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: Yes
Available in SharePoint Online

public override SPPermissionInfo GetUserEffectivePermissionInfo(
	string userName
)

Parameters

userName
Type: System.String

The user associated with the returned permissions information.

Return Value

Type: Microsoft.SharePoint.SPPermissionInfo
The permissions associated with the given user.

ExceptionCondition
UnauthorizedAccessException

The user does not have permission to enumerate permissions.

Show:
© 2016 Microsoft