AccessControlGetObjectSecurity Method (ConnectionId, SessionId, Int32, CSSecurableObjects, String) Content Studio 5.7 SDK
Content Studio Web Content Management System

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

Returns a Content Studio securable object security descriptor in the Content Studio XML format.

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

public string GetObjectSecurity(
	ConnectionId connectionId,
	SessionId sessionId,
	int objectId,
	CSSecurableObjects objectType,
	string objectName
)

Parameters

connectionId
Type: ContentStudioConnectionId
A value that identifies the web site
sessionId
Type: ContentStudio.SecuritySessionId
A value that identifies the user's session. This value usually originates from a call to OpenSession(ConnectionId).
objectId
Type: SystemInt32
The id of the object to obtain information for
objectType
Type: ContentStudio.SecurityCSSecurableObjects
The type of object identified by the objectID parameter. The value is not valid as a parameters and causes an error.
objectName
Type: SystemString
The name of the object.

Return Value

Type: String
XML containing the security descriptor
Exceptions

ExceptionCondition
CSExceptionA business rule was violated in the underlying Content Studio database
SqlExceptionAn error occurred when executing the command against the Content Studio database
Content Studio permissions

Read permission on the object is required in order to read permissions.
Remarks

Do not work with the Content Studio security descriptor directly, its schema is rather complicated and working with is extremely prone to errors. Use the CSSecurityDescriptor object to load and manipulate the security descriptor in a safe way.
See Also

Reference