deleteUsers method
This operation deletes users on a device. The device shall support deletion of device users and their credentials through the DeleteUsers command. A device may have one or more fixed users that cannot be deleted to ensure access to the unit. Either all users are deleted successfully or a fault message shall be returned and no users be deleted.
Access Class: WRITE_SYSTEM
Implementation
Future<bool> deleteUsers(List<String> users) async {
loggy.debug('deleteUsers');
final responseEnvelope = await transport.securedRequest(
uri,
soap.Body(
request: DeviceManagementRequest.deleteUsers(users),
));
if (responseEnvelope.body.hasFault) {
throw Exception(responseEnvelope.body.fault.toString());
}
return true;
}