CSDiscretionaryAccessControlListAddAccess Method (SecurityIdentifier, AccessControlType, CSObjectPermissions, Boolean) Content Studio 5.7 SDK
Content Studio Web Content Management System

[This is preliminary documentation and is subject to change.]

Adds access for a trustee with a certain type, flags and access mask. To remove access with the same type and flags for a trustee, pass an CSDiscretionaryAccessControlEntry with the CSObjectPermissions.None access mask. To completely remove all access for a trustee, use the RevokeAccess method.

Namespace: ContentStudio.Security.AccessControlEdit
Assembly: CSServer5 (in CSServer5.dll) Version: 5.7.5016.0 (5.7.5016.0)
Syntax

public void AddAccess(
	SecurityIdentifier sid,
	AccessControlType aceType,
	CSObjectPermissions accessMask,
	bool isContainer
)

Parameters

sid
Type: System.Security.PrincipalSecurityIdentifier
A SecurityIdentifier that identifies the trustee to add access for.
aceType
Type: System.Security.AccessControlAccessControlType
The type of access to add
accessMask
Type: ContentStudio.SecurityCSObjectPermissions
The access mask to be used
isContainer
Type: SystemBoolean
A value that indicates whether the object that owns this discretionary list is a container or a leaf object.
Remarks

This version of the AddAccess method adds a new entry with the standard inheritance properties for the object depending on if the object is a container or not.
See Also

Reference