Click or drag to resize

RemoteUserAdminServiceListUsers Method

OFV Kjøretøydata service

Get list of existing users from system - its only possible to retreive users that belongs to company logged in!

Namespace:  OfvVehicleData.Service
Assembly:  OfvVehicleData.Service (in OfvVehicleData.Service.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
C#
public DTO ListUsers(
	string companyUserName,
	string password,
	string ipAddress,
	string format
)

Parameters

companyUserName
Type: SystemString
String representation of username for given company - used for Authorization
password
Type: SystemString
String representation of MD5 hashed password for given company - used for Authorization
ipAddress
Type: SystemString
String representation of client ip-address - NOT IN USE
format
Type: SystemString
json/xml - which format result will be delivered in.

Return Value

Type: DTO
Return object of DTO, with data from result (for this List of UserAdminDTO is returned), status of request and a description that gives any exceptions.
Examples
Here`s an example on how to use method.
Input
{
    "companyUserName" : "companyUserName",
    "password" : "2c18e486683a3db1e645ad8523223b72",
    "ipAddress" : "192.168.1.100"
}
Output success
{
    "success" : true,
    "data" : [{
            "__type" : "userAdmin:admin",
            "userId" : 700,
            "userName" : "user@triolink.no",
            "firstName" : "First",
            "lastName" : "Last",
            "email" : "user@triolink.no",
            "active" : true,
            "comments" : "Webservice created user",
            "createdDate" : "\/Date(1391072856150+0100)\/"
        }, {
            "__type" : "userAdmin:admin",
            "userId" : 701,
            "userName" : "user1@triolink.no",
            "firstName" : "Fisrt1",
            "lastName" : "Last1",
            "email" : "user1@triolink.no",
            "active" : true,
            "comments" : "Webservice created user",
            "createdDate" : "\/Date(1391072989100+0100)\/"
        }, {
            "__type" : "userAdmin:admin",
            "userId" : 702,
            "userName" : "user2@triolink.no",
            "firstName" : "First2",
            "lastName" : "Last2",
            "email" : "user2@triolink.no",
            "active" : true,
            "comments" : "Webservice created user",
            "createdDate" : "\/Date(1391073231053+0100)\/"
        }
    ]
}
Output wrong username
{
    "success" : false,
    "description" : "403;Feil bruker eller passord!"
}
See Also