IamUtil.createUserAsync()

DESCRIPTION

Asynchronously create an IAM user on device.

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

DECLARATION

    static public func createUserAsync(connection: Connection,
                                       username: String,
                                       password: String,
                                       role: String,
                                       closure: @escaping AsyncIamResultReceiver) 

PARAMETERS

connection:
An established connection to the device
username:
Username for the new user
password:
Password for the new user
role:
IAM role for the new user
closure:
Invoked when the user is created successfully or an error occurs