SPWeb.GetUserEffectivePermissions Method

Gets the effective permissions that the specified user has within the current application scope.

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


Public Overrides Function GetUserEffectivePermissions ( _
    userName As String _
) As SPBasePermissions
Dim instance As SPWeb
Dim userName As String
Dim returnValue As SPBasePermissions

returnValue = instance.GetUserEffectivePermissions(userName)
public override SPBasePermissions GetUserEffectivePermissions(
    string userName


  • userName
    Type: System.String

    The user associated with the returned permissions.

Return Value

Type: Microsoft.SharePoint.SPBasePermissions
The permissions of the given user.


Exception Condition

The user does not have permission to enumerate permissions.

See Also


SPWeb Class

SPWeb Members

Microsoft.SharePoint Namespace