Obtain all user information. Before executing this function, you can use ReadAllUserID to read out all user information and write it into the memory. Each time GetAllUserID is executed, the pointer points to the next user information. After all user information is read, False is returned. The difference between this function and GetAllUserInfo is that GetAllUserInfo can obtain also user name and password.


Device number

User ID

Invalid parameter. Return 0.

User privilege. 0: common user, 1: enroller, 2: administrator, 3: super administrator

Whether the user is enabled. 1: Enabled. 0: Disabled.

Return Value

Return True if it is successful, or return False.

Related Function

ReadAllUserID, GetAllUserInfo




private void GetAllUserID(string sIp = "", int iPort = 4370, int iMachineNumber = 1)
		//Create Standalone SDK class dynamicly.
		zkemkeeper.CZKEMClass axCZKEM1 = new zkemkeeper.CZKEMClass();

		axCZKEM1.Connect_Net(sIp, iPort);
		int iEnrollNumber = 0;
		int iEMachineNumber = 1;
		int iBackupNumber = 0;
		int iPrivilege = 0;
		int ienabled = 0;

		axCZKEM1.EnableDevice(iMachineNumber, false);
		axCZKEM1.ReadAllUserID(iMachineNumber);//read all the user information to the memory
		while (axCZKEM1.GetAllUserID(iMachineNumber, ref iEnrollNumber, iEMachineNumber, iBackupNumber, iPrivilege, ienabled))

		axCZKEM1.EnableDevice(iMachineNumber, true);


Private Shared Sub GetAllUserID(Optional ByVal sIp As String = "", Optional ByVal iPort As Integer = 4370,
							  Optional ByVal iMachineNumber As Integer = 1)
	'Create Standalone SDK class dynamicly.
	Dim axCZKEM1 As New zkemkeeper.CZKEM
	axCZKEM1.Connect_Net(sIp, iPort)
	Dim iEnrollNumber As Integer
	Dim iEMachineNumber As Integer
	Dim iBackupNumber As Integer
	Dim iPrivilege As Integer
	Dim ienabled As Integer

	axCZKEM1.EnableDevice(iMachineNumber, False)
	axCZKEM1.ReadAllUserID(iMachineNumber) 'read all the user information to the memory
	While axCZKEM1.GetAllUserID(iMachineNumber, iEnrollNumber, iEMachineNumber, iBackupNumber, iPrivilege, ienabled) = True
	End While

	axCZKEM1.EnableDevice(iMachineNumber, True)
End Sub