Update an IAM user’s role on device. Runs asynchronously with a callback.
Known issue: This function currently assumes the user exists. To be able to interpret the ROLE_DOES_NOT_EXIST code correctly, this assumption most hold. Later it can gracefully handle non-existing users
Result and error information is sent to the callback.
See https://docs.nabto.com/developer/guides/iam/intro.html for an intro to the concept of roles.
public abstract void updateUserRoleCallback(Connection connection, String username, String role, IamCallback callback)
- An established connection to the device
- Username for the user that should have password updated
- New role for the user
- The callback that will be run once the function has completed successfully or erroneously.