AccessControlGetObjectSecurity Method (ConnectionId, SessionId, Int32, CSSecurableObjects) 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)

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


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

Return Value

Type: String
XML containing the security descriptor

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.

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