Get User Roles

This API call is used to return all user roles with name and id for an account.

Request Data

Required Information
Name Description
action adminusers
operation getuserroles
format xml

Data Returned

Returned information:

Reply Data
Name Description
id The id of the role.
role The name of the role.

Example Request:
https://test.zonarsystems.net/interface.php?action=adminusers&operation=getuserroles&format=xml

DTD:
<!ELEMENT user_roles(role*)>
<!ATTLIST user_roles ver CDATA #REQUIRED>
<!ELEMENT user (#PCDATA)>
<!ATTLIST user id CDATA #REQUIRED>

Example Reply:
<user_roles ver="1">
  <role id="1">Admin</role>
  <role id="2">Mechanic</role>
</user_roles>