Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

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 SPBasePermissions GetEffectiveRightsForAcl(
	SPReusableAcl acl,
	SPWeb web


Type: Microsoft.SharePoint.SPReusableAcl

An SPReusableAcl object that represents an ACL.

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.

© 2015 Microsoft