Click or drag to resize

RemoteUserAdminServiceReactivateUser Method

OFV Kjøretøydata service

Re-Activate existing user - its only possible to reactivate 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 ReactivateUser(
	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 data from result (for this UserAdminDTO is returned), 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" : "user@triolink.no"
    },
    "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)\/",
        "subscription" : {
            "vehicleGroup" : 101,
            "subscriptionId" : 8,
            "subscriptionName" : "Kjøretøydata Proff - Personbil",
            "dateFrom" : "01.01.2014",
            "dateTo" : "28.02.2014",
            "comments" : "Created by Webservice 30.01.2014"
        }
    }
}
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