SPSite.GetEffectiveRightsForAcl method (SPReusableAcl, SPWeb)

Returns the actual permissions that the current user has for the specified access control list (ACL).

Namespace:  Microsoft.SharePoint
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)


Public Function GetEffectiveRightsForAcl ( _
    acl As SPReusableAcl, _
    web As SPWeb _
) As SPBasePermissions
Dim instance As SPSite
Dim acl As SPReusableAcl
Dim web As SPWeb
Dim returnValue As SPBasePermissions

returnValue = instance.GetEffectiveRightsForAcl(acl, _
public SPBasePermissions GetEffectiveRightsForAcl(
    SPReusableAcl acl,
    SPWeb web


  • web
    Type: Microsoft.SharePoint.SPWeb

    An SPWeb object that represents a Web site. The Web site that you specify serves as a helper object that is used to calculate permission on the specified ACL. Specifying a Web site improves performance by eliminating the need to recreate the root Web site object.

Return value

Type: Microsoft.SharePoint.SPBasePermissions
An SPBasePermissions value that specifies base permissions for the site and ACL.


The GetEffectiveRightsForAcl method returns more information than the DoesUserHavePermissions method.

See also


SPSite class

SPSite members

GetEffectiveRightsForAcl overload

Microsoft.SharePoint namespace