IamUtil.getAvailableRoles()
DESCRIPTION
Retrieve the roles that a user can be assigned on this device.
DECLARATION
public abstract String[] getAvailableRoles(Connection connection)
PARAMETERS
connection:
- An established connection to the device
THROWS EXCEPTIONS
IamException:
- with IamError
BLOCKED_BY_DEVICE_CONFIGURATION
if the device configuration does not allow retrieving this list (requires theIAM:ListRoles
permission) IamException:
- with IamError
IAM_NOT_SUPPORTED
if Nabto Edge IAM is not supported by the device
RETURNS
A list of the available roles.