IamUtil.updateUserPasswordAsync()
DESCRIPTION
Asynchronously update an IAM user’s password on device.
The specified AsyncIamResultReceiver closure is invoked with IamError.OK upon successful completion or with an error if an error occurs. See the updateUserPassword()
function for details about possible error codes.
DECLARATION
static public func updateUserPasswordAsync(connection: Connection,
username: String,
password: String,
closure: @escaping AsyncIamResultReceiver)
PARAMETERS
connection:
- An established connection to the device
username:
- Username for the user that should have password updated
password:
- New password for the user
closure:
- Invoked when the user is deleted or an error occurs