Asynchronously get details about a specific user.
The specified AsyncIamResultReceiver closure is invoked with IamError.OK and an IamUser object upon
successful completion or with an error if an error occurs. See the
getUser() function for
details about possible error codes.
static public func getUserAsync(connection: Connection, username: String, closure: @escaping AsyncIamResultReceiverWithData<IamUser>)
- An established connection to the device
- Username of the user to get
- Invoked when the user information is successfully retrieved or retrieval fails.