Kotlin: IamUtil.awaitGetAvailableRoles()

DESCRIPTION

Retrieve the roles that a user can be assigned on this device.

This function is meant to be used in a Kotlin coroutine to suspend execution until the operation has completed.

DECLARATION

suspend fun IamUtil.awaitGetAvailableRoles(
    connection: Connection,
): Array<String> 

PARAMETERS

connection:
An established connection to the device

THROWS EXCEPTIONS

BLOCKED_BY_DEVICE_CONFIGURATION:
if the device configuration does not allow retrieving this list (requires the IAM:ListRoles permission)
IAM_NOT_SUPPORTED:
if Nabto Edge IAM is not supported by the device