Ongoing Warehouse logo
Ongoing Warehouse Developer

GetUsers

This function lets you retrieve information about all users which have been set up in Ongoing.

Tags: GetArticlesPackageTypes, GetUsersResponse, GetUsersResult, User

Request XML

POST /xxx/Automation.asmx HTTP/1.1
Host: api.ongoingsystems.se
Content-Type: text/xml; charset=utf-8
Content-Length: length
SOAPAction: "http://ongoingsystems.se/Automation/GetUsers"

<?xml version="1.0" encoding="utf-8" ?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
    <soap:Body>
        <GetUsers xmlns="http://ongoingsystems.se/Automation">
            <UserName>string</UserName>
            <Password>string</Password>
            <Query />
        </GetUsers>
    </soap:Body>
</soap:Envelope>
+

Request specification

GetArticlesPackageTypes
UserName str(50) Req. Your username.
Password str(50) Req. Your password.
Query object Req. An empty tag

Response XML

HTTP/1.1 200 OK
Content-Type: text/xml; charset=utf-8
Content-Length: length

<?xml version="1.0" encoding="utf-8" ?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
    <soap:Body>
        <GetUsersResponse xmlns="http://ongoingsystems.se/Automation">
            <GetUsersResult>
                <Message>string</Message>
                <Success>boolean</Success>
                <Users>
                    <User>
                        <UserId>int</UserId>
                        <UserName>string</UserName>
                        <UserType>string</UserType>
                    </User>
                    <User>
                        <UserId>int</UserId>
                        <UserName>string</UserName>
                        <UserType>string</UserType>
                    </User>
                </Users>
            </GetUsersResult>
        </GetUsersResponse>
    </soap:Body>
</soap:Envelope>
+

Response specification

GetUsersResult
GetUsersResult object A GetUsersResult object
GetUsersResult
Success bool True if the call succeeded, false otherwise
Message string If the call failed, this field contains the error message
Users object A list of Users
User
UserId int Ongoing's internal id for the user
UserName str(50) The username of the user
UserType str(*) A string describing what type of user it is. Possible values include:

- Administrator
- AutomationUser
- Dashboard
- PrinterServiceUser
- Reseller
- SOAPUserCustomer
- Supplier
- WarehouseUser