CSDiscretionaryAccessControlListAddAccess Method (SecurityIdentifier, AccessControlType, CSObjectPermissions, AceFlags) 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,
	AceFlags aceFlags
)

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
aceFlags
Type: System.Security.AccessControlAceFlags
Specifies the inheritance properties for the new entry. You cannot use the inherited flag System.Security.AccessControl.AceFlags.Inherited
Exceptions

ExceptionCondition
InvalidOperationExceptionThe Ace specifies an inherited Ace.
See Also

Reference