IamUtil.updateUserRoleAsync()

DESCRIPTION

Asynchronously update an IAM user’s role on device.

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

DECLARATION

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

PARAMETERS

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