Get list of groups

getGroups(p_companyID, p_locationID)


You can use this endpoint to retrieve a list of groups from our software.


Name Type Required Description
p_companyID string Yes The security code you have been provided with, string (32)
p_locationID integer No This parameter can be used only for companies of type Branch (for EasySecure companies it will not have any effect). If not provided, all groups are returned.

Return values

getGroupsObjectArray (array), containing structs (arrays) of getGroupsObject with the following keys:

GroupId – the Id of the group, string - this field is also used to return possible error message when the case

GroupName – the name of the group, string


<soapenv:Envelope xmlns:xsi="" xmlns:xsd="" xmlns:soapenv="" xmlns:uen="uen:esws">
<uen:Esws.getUsers soapenv:encodingStyle="">
<p_companyID xsi:type="xsd:string">^4p;tU0Q+#dEIhTWkuj5FnLD^aKWqVu0</p_companyID>
<p_locationID xsi:type="xsd:string"></p_locationID>


<SOAP-ENV:Envelope SOAP-ENV:encodingStyle="" xmlns:SOAP-ENV="" xmlns:xsd="" xmlns:xsi="" xmlns:SOAP-ENC="">
<ns1:Esws.getGroupsResponse xmlns:ns1="uen:esws">
<return xsi:type="SOAP-ENC:Array" SOAP-ENC:arrayType="tns:getUsersObject[1]">
<item xsi:type="tns:getGroupsObject">
<GroupId xsi:type="xsd:string">1</GroupId>
<GroupName xsi:type="xsd:string">Group 1</GroupName>
<item xsi:type="tns:getGroupsObject">
<GroupId xsi:type="xsd:string">10</GroupId>
<GroupName xsi:type="xsd:string">Group 2</GroupName>