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)

public abstract SPBasePermissions GetUserEffectivePermissions(
	string 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.