Click or drag to resize

RemoteUserAdminServiceDeleteUser Method

OFV Kjøretøydata service

Delete an existing user - its only possible to delete 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 DeleteUser(
	UserAdminDTO userToAdmin,
	string companyUserName,
	string password,
	string ipAddress,
	string format
)

Parameters

userToAdmin
Type: OfvService.DTO.AdminUserAdminDTO
UserAdminDTO
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 no data, status of request and a description that gives any exceptions.
Examples
Here`s an example on how to use method.
Input
{
    "userToAdmin" : {
        "userId" : "700",
        "userName" : "user0@triolink.no"
    },
    "companyUserName" : "companyUserName",
    "password" : "2c18e486683a3db1e645ad8523223b72",
    "ipAddress" : "192.168.1.100"
}
Output success
{
    "success" : true
}
Output non-success
{
    "success" : false,
    "description" : "419;Brukernavn stemmer ikke med brukerId."
}
Output wrong username
{
    "success" : false,
    "description" : "403;Feil bruker eller passord!"
}
See Also