IamUtil.updateUserDisplayName()
DESCRIPTION
Update an IAM user’s display name on device.
This function blocks until it has succeeded.
DECLARATION
public abstract void updateUserDisplayName(Connection connection, String username, String displayName)
PARAMETERS
connection:- An established connection to the device
username:- Username for the user that should have display name updated
displayName:- New display name
THROWS EXCEPTIONS
IamException:- with IamError
USER_DOES_NOT_EXISTif the specified user does not exist on the device (see note above) IamException:- with IamError
BLOCKED_BY_DEVICE_CONFIGURATIONif the device configuration does not allow the current user to update the specified user's display name (theIAM:SetUserDisplayNameaction is not allowed for the requesting role for theIAM:Usernameuser) IamException:- with IamError
IAM_NOT_SUPPORTEDif Nabto Edge IAM is not supported by the device