Using Connect Enterprise Web Services |
|||
| Basics > Check permissions | |||
Permissions define the ways in which a principal can interact with a SCO.
A permission mapping, indicating what permissions a principal has for a particular SCO, is called an access control list or ACL. An ACL consists of three pieces of information:
principal-id).acl-id. In other calls, the ID might be called a sco-id, account-id, or principal-id.permission-id.permissions-info with both an acl-id and principal-id:
https://example.com/api/xml?action=permissions-info&acl-id=2006334909
&principal-id=2006258745
To check for permissions on a SCO, the acl-id is a sco-id. The acl-id can also be a principal-id or account-id.
permission-id:
<?xml version="1.0" encoding="utf-8" ?>
<results>
<status code="ok" />
<permission acl-id="2007035246" permission-id="view"
principal-id="2006258745" />
</results>
If a principal does not have an explicit permission to the SCO (in other words, if permission-id=""), the principal's permissions on the SCO's parent object apply.
permissions-info with an acl-id, but no principal-id:https://example.com/api/xml?action=permissions-info&acl-id=2006293572
principal elements and parse them for permission-id values:
<principal principal-id="2596608" is-primary="false" type="user"
has-children="false" permission-id="view">
<name>Jay Arnold</name>
<login>jay@example.com</login>
</principal>
The valid permission values are listed in permission-id.
Send me an e-mail when comments are added to this page | Comment Report
Current page: http://livedocs.adobe.com/breeze/6/xml_api/03_per11.htm