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)

Syntax

'Declaration
Public Overrides Function GetUserEffectivePermissionInfo ( _
    userName As String _
) As SPPermissionInfo
'Usage
Dim instance As SPWeb
Dim userName As String
Dim returnValue As SPPermissionInfo

returnValue = instance.GetUserEffectivePermissionInfo(userName)
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.

Exceptions

Exception Condition
UnauthorizedAccessException

The user does not have permission to enumerate permissions.

See also

Reference

SPWeb class

SPWeb members

Microsoft.SharePoint namespace