1 out of 1 rated this helpful Rate this topic

SPSecurityTrimmedControl.PermissionsString Property

Gets or sets the PermissionString.

Namespace:  Microsoft.SharePoint.WebControls
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: No
public string PermissionsString { get; set; }

Property Value

Type: System.String

The PermissionsString attribute defines the permissions the user must have in order to view the content. See SPBasePermissions enumeration for a listing of possible values.

<SharePoint:SPSecurityTrimmedControl PermissionsString="AddAndCustomizePages, ManageLists" runat="server"> 
    <%--content %>
</SharePoint:SPSecurityTrimmedControl>
Did you find this helpful?
(2000 characters remaining)
Community Content Add
Annotations FAQ
Permissions Strings
Are you kidding me?
Why on earth would you not provide the *list* of strings that are possible along with a description of the effect?  It's not even in the "See Also" section.
Relationship between permissions in this property
Using Reflector on the WebControl you might conclude that the relationship between permissions stated in this property is "||" (OR) - in this example, the user would need to EITHER have "AddAndCustomizePages" OR "ManageLists" for the content to be rendered. However, tests suggest that the relationship is "&&" (AND) which is probably true because of the bitwise combination on the SPBasePermissions enumerator.