Kotlin: IamUtil.awaitGetUser()
DESCRIPTION
Get details about a specific user.
This function is meant to be used in a Kotlin coroutine to suspend execution until the operation has completed.
DECLARATION
suspend fun IamUtil.awaitGetUser(
connection: Connection,
username: String,
): IamUser
PARAMETERS
connection:
- An established connection to the device
username:
- Username of the user to get
THROWS EXCEPTIONS
USER_DOES_NOT_EXIST:
- if the user does not exist on the device
BLOCKED_BY_DEVICE_CONFIGURATION:
- if the device configuration does not allow retrieving this user (the
IAM:GetUser
action is not set for the requesting role) IAM_NOT_SUPPORTED:
- if Nabto Edge IAM is not supported by the device
RETURNS
an IamUser instance describing the requested user