Content Studio Web Content Management System
Assembly: CSServer5 (in CSServer5.dll) Version: 5.7.5016.0 (5.7.5016.0)
XML containing effective access mask
Read permission on the examined object required in order execute this method.
This method returns the following Xml syntax
[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: StringXML containing effective access mask
Exceptions
Exception | Condition |
---|---|
CSException | A business rule was violated in the underlying Content Studio database |
SqlException | An error occurred when executing the command against the Content Studio database |
Content Studio permissions
Examples
<root> <status>0</status> <statustext>Success</statustext> <permission>Access mask</permission> </root>
See Also