IamUtil.GetUserAsync()

DESCRIPTION

Get details about a specific user.

DECLARATION

System.Threading.Tasks.Task`1[Nabto.Edge.ClientIam.IamUser] GetUserAsync(Nabto.Edge.Client.IConnection, System.String)

PARAMETERS

  • connection: An established connection to the device
  • username: The username of the user to be retrieved.

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 user is not allowed to perform this operation.

RETURNS

An IamUser instance describing the current user.