IamUtil.UpdateUserUsernameAsync()

DESCRIPTION

Update a user’s username.

DECLARATION

System.Threading.Tasks.Task UpdateUserUsernameAsync(Nabto.Edge.Client.IConnection, System.String, System.String)

PARAMETERS

  • connection: An established connection to the device
  • username: The existing username for the user to be updated
  • newUsername: The desired new username

ERRORS

  • T:Nabto.Edge.ClientIam.IamException: Thrown with Nabto.Edge.ClientIam.IamError if the user does not exist on the device.
  • T:Nabto.Edge.ClientIam.IamException: Thrown with Nabto.Edge.ClientIam.IamError if the desired new username already is in use on the device.
  • T:Nabto.Edge.ClientIam.IamException: Thrown with Nabto.Edge.ClientIam.IamError if the user is not allowed to perform this operation.