AccessControlEffectivePermissions Method Content Studio 5.7 SDK
Content Studio Web Content Management System

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

Returns the effective permissions a user has on a certain Content Studio securable object.

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

public string EffectivePermissions(
	ConnectionId connectionId,
	SessionId sessionId,
	int trusteeId,
	AccountType trusteeType,
	int objectId,
	CSSecurableObjects objectType
)

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).
trusteeId
Type: SystemInt32
The id of the user to test permissions for. Pass zero to check the caller's own permissions.
trusteeType
Type: ContentStudio.SecurityAccountType
The type of trustee to check the permission for.
objectId
Type: SystemInt32
The id of the object to test the permission for.
objectType
Type: ContentStudio.SecurityCSSecurableObjects
The type of securable object to test

Return Value

Type: String
XML containing effective access mask
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 examined object required in order execute this method.
Examples

This method returns the following Xml syntax
<root>
    <status>0</status>
    <statustext>Success</statustext>
    <permission>Access mask</permission>
    </root>
See Also

Reference