IamUtil.updateUserRoleCallback()
DESCRIPTION
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.
DECLARATION
public abstract void updateUserRoleCallback(Connection connection, String username, String role, IamCallback callback)
PARAMETERS
connection:
- An established connection to the device
username:
- Username for the user that should have password updated
role:
- New role for the user
callback:
- The callback that will be run once the function has completed successfully or erroneously.