This API call is used to return all user roles with name and id for an account.
| Required Information |
| Name |
Description |
| action |
adminusers |
| operation |
getroles |
| format |
xml |
Returned information
| Reply Data |
| Name |
Description |
| id |
The id of the role. |
| role |
The name of the role. |
Example Request
https://omi.zonarsystems.net/interface.php?customer=zzo2544&username=zonar&password=secret.pw.2019&action=adminusers&operation=getroles&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>