View Permissions |
Scroll |
When the TheSecurity class has loaded an object (e.g. a category, a document or a folder) you can view and modify the permissions that various users have on that object. These permissions are organized in ThePermissionList object. Each of these lists contains all permissions that one user has for the specified object.
The Step By Step guide and the code sample below show how to read and iterate permission lists.
1 |
Connect to the Thereforeâ„¢ server (see "Server - Connect and Disconnect" for Details) |
2 |
Declare and initialize a new TheSecurity instance. |
3 |
Load permissions for an object. |
4 |
Print each user and his/her permissions on the loaded object. |
Requirements and Assumptions: Category number 9 exists in your Thereforeâ„¢ system. If these assumptions do not apply to your system or configuration please replace them with appropriate values when copying the code samples below. |