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.
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:
It specifies a filtering rule. Data type: RoleSelectionPermissionFilter (site.xsd
).
It specifies a role owner GUID. Data type: string.
The get-permission-descriptor node of the output XML packet is structured as follows:
plesk_common.xsd
). 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>