I using Zkemkeeper to add new user to my zkteco device with SSR_SetUserInfo() method, it's work, return true. Check this user by SSR_GetUserInfo() with this userID, return true. But when I use SSR_GetAllUserInfo() to get all users but the user not contain in this list who i just added before. I don't know why.
Please help. I spent 3 days with it and without results
Here is my code
public bool PushUserDataToDevice(ZkemClient objZkeeper, int machineNumber, string enrollNo)
{
string userName = "vuongtesttt";
string password = "123";
bool enable = true;
int privelage = 1;
objZkeeper.EnableDevice(machineNumber, false);
bool check = objZkeeper.SSR_SetUserInfo(machineNumber, enrollNo, userName, password, privelage, true);
if (check)
{
objZkeeper.RefreshData(machineNumber);
bool checkContain = objZkeeper.SSR_GetUserInfo(machineNumber, enrollNo, out userName, out password, out privelage, out enable);
objZkeeper.EnableDevice(machineNumber, true);
if (checkContain) return checkContain;
}
return false;
}
What I have tried:
Is push up with SDK acceptable? Do you have any solution?