Umair Anwaar
Umair Anwaar

Reputation: 1138

Disable User in MultiBio 800-H Device using zk api (zkemkeeper / Interop.zkemkeeper)

I am developing an Access Control and able to disable user in other zk Devices. using below code but not only in zk 800-H device method returns true but cards is working and unlocking door.

In other device if I disable the user, swipe card device shows me user is disabled which is fine..

zkemkeeper.CZKEM zkApi = new zkemkeeper.CZKEM();//intialize api...
var bIsConnected = zkApi.Connect_Net("xxx.xxx.xxx.xxx", 4370);// connecting api and tested the device is connected.

if (bIsConnected)
{
     zkApi.RegEvent(1, 65535);
     return true;
}
//in zk api for enable disable user

//in below method 1 is iMachineNumber, "1001" is UserId In machine and fasle is for enable/disable user.
var result = zkApi.SSR_EnableUser(1, "1001" , false);//no error and return true for indicate success.

if (result) 
{
     MessageBox.Show("User Disabled Successfull"); 
}

Upvotes: 1

Views: 1599

Answers (2)

naeem007saif
naeem007saif

Reputation: 92

There is a known issue in this device as I faced the same issue and contacted the support. team. Simply delete the record if you want to disable it.

Upvotes: 2

RedArcCoder
RedArcCoder

Reputation: 121

Using C#, just do this (obviously you need the employeeId)

    objCZKEM = new CZKEM();
    string _Name = "", _Password = "";
    int _Privilefe = 0;
    bool _Enabled = false;

    var t = objCZKEM.SSR_GetUserInfo(1, "2524", out _Name, out _Password, out _Privilefe, out _Enabled);

    t = objCZKEM.SSR_SetUserInfo(1, "2524", _Name, _Password, _Privilefe, false);

Upvotes: 2

Related Questions