getUsers method
This operation lists the registered users and corresponding credentials on a device. The device shall support retrieval of registered device users and their credentials for the user token through the getUsers (GetUsers) command.
Access Class: READ_SYSTEM_SECRET
Implementation
Future<List<User>> getUsers() async {
loggy.debug('getUsers');
final responseEnvelope = await transport.securedRequest(
uri,
soap.Body(
request: DeviceManagementRequest.getUsers(),
));
if (responseEnvelope.body.hasFault) {
throw Exception(responseEnvelope.body.fault.toString());
}
return GetUsersResponse.fromJson(responseEnvelope.body.response!).users;
}