IamUtil.CreateUserAsync()

DESCRIPTION

Create a new user on the Nabto Edge device.

DECLARATION

System.Threading.Tasks.Task CreateUserAsync(Nabto.Edge.Client.IConnection, Nabto.Edge.ClientIam.IamUser)

PARAMETERS

  • connection: An established connection to the device
  • user: Details about the user to create

ERRORS

  • T:Nabto.Edge.ClientIam.IamException: Thrown with Nabto.Edge.ClientIam.IamError if the current user is not allowed to perform this operation.
  • T:Nabto.Edge.ClientIam.IamException: Thrown with Nabto.Edge.ClientIam.IamError if the role specified in the IamUser object does not exist on the device.