Getting Permission Descriptors

Use the get-permission-descriptor operation to retrieve descriptor of permissions you can set for roles. For details on descriptors, refer to the Retrieving Permission Descriptors section.

In this chapter:

Request Packet Structure

Response Packet Structure

Samples

 

Request Packet Structure

A request XML packet retrieving descriptor of permissions includes the get-permission-descriptor operation node:

<packet version="1.6.3.0">
<role>
   <get-permission-descriptor>
   ...
   </get-permission-descriptor>
</role>
</packet>

 

This operation retrieves a permissions descriptor for a particular Panel user. The get-permission-descriptor node (site.xsd) has the following graphical representation:

role-get-permission-descriptor-rps.gif

 

Response Packet Structure

The get-permission-descriptor node of the output XML packet is structured as follows:

role-permissions-reps.gif

 

Samples

The request packet retrieving permissions for the customer with ID 5 looks as follows:

<packet version ="1.6.3.0">
<role>
   <get-permission-descriptor>
      <filter>
         <owner-guid>5</owner-guid>
      </filter>
   </get-permission-descriptor>
</role>
</packet>

A response from the server can look as follows:

<packet version="1.6.3.0">
  <role>
    <get-permission-descriptor>
      <result>
        <status>ok</status>
        <filter-id>5</filter-id>
        <id/>
        <descriptor>
          <property>
            <name>userManagement</name>
            <type>boolean</type>
            <default-value>false</default-value>
            <writable-by>admin</writable-by>
            <writable-by>client</writable-by>
          </property>
...
        </descriptor>
      </result>
    </get-permission-descriptor>
  </role>
</packet>