IamUtil.renameUserAsync()

DESCRIPTION

Asynchronously update an IAM user’s username on device.

The specified AsyncIamResultReceiver closure is invoked with IamError.OK upon successful completion or with an error if an error occurs. See the renameUser() function for details about possible error codes and known issues.

DECLARATION

    static public func renameUserAsync(connection: Connection,
                                       username: String,
                                       newUsername: String,
                                       closure: @escaping AsyncIamResultReceiver) 

PARAMETERS

connection:
An established connection to the device
username:
Username for the user that should have username updated
newUsername:
New username for the user
closure:
Invoked when the user is deleted or an error occurs

ERRORS

Throws the following errors:

None.

RETURN VALUES

None.

EXAMPLES

None.