SPSecurableObject.GetUserEffectivePermissions Method

Gets the effective permissions that a specified user has in the current scope.

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

Syntax

'Declaration
Public MustOverride Function GetUserEffectivePermissions ( _
    userName As String _
) As SPBasePermissions
'Usage
Dim instance As SPSecurableObject
Dim userName As String
Dim returnValue As SPBasePermissions

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

Parameters

  • userName
    Type: System.String

    The value of the LoginName property of the user whose permissions are to be returned.

Return Value

Type: Microsoft.SharePoint.SPBasePermissions
A bitwise combination of enumeration values that specifies a set of permissions.

See Also

Reference

SPSecurableObject Class

SPSecurableObject Members

Microsoft.SharePoint Namespace

EffectiveBasePermissions

GetUserEffectivePermissionInfo(String)