Returns a list of users who can perform repairs for use with the addrepair action.
Request Data
Required Information | |
---|---|
Name | Description |
action | extgetrepairusers |
Optional Information | |
location | Location to filter with. Text. If provided only users assigned to that location will be returned. If location is not supplied or an empty location is specified, users from all locations will be returned. |
logvers | This parameter will determine the format of the output.
|
Data Returned
A list of users.
DTD
<!ELEMENT repairuserlist (user*)>
<!ATTLIST repairuserlist ver CDATA #REQUIRED>
<!ELEMENT user (logname, fname, lname, active, location)>
<!ELEMENT logname (#PCDATA)>
<!ELEMENT fname (#PCDATA)>
<!ELEMENT lname (#PCDATA)>
<!ELEMENT active (#PCDATA)>
<!ELEMENT location (#PCDATA)>
DTD (log version 2)
logvers=2
<!ELEMENT repairuserlist (user*)> <!ATTLIST repairuserlist ver CDATA #REQUIRED> <!ELEMENT user (id, logname, fname, lname, active, location)> <!ELEMENT id (#PCDATA)> <!ELEMENT logname (#PCDATA)> <!ELEMENT fname (#PCDATA)> <!ELEMENT lname (#PCDATA)> <!ELEMENT active (#PCDATA)> <!ELEMENT location (#PCDATA)>
Example Request
https://omi.zonarsystems.net/interface.php?customer=zzo2544&username=zonar&password=secret.pw.2019&action=extgetrepairusers
Example request using logvers=2
https://omi.zonarsystems.net/interface.php?customer=zzo2544&username=zonar&password=secret.pw.2019&action=extgetrepairusers&logvers=2
Example logvers 2 Success Reply
<?xml version="1.0"?>
<repairuserlist ver="1">
<user>
<id>18</id>
<logname>tuser</logname>
<fname>test</fname>
<lname>user</lname>
<location>Home</location>
<active>true</active>
</user>
<user>
<id>14</id>
<logname>jdoe</logname>
<fname>John</fname>
<lname>Doe</lname>
<location>Home</location>
<active>false</active>
</user>
</repairuserlist>