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_CONFIGURATIONif the device configuration does not allow retrieving this list (requires theIAM:ListRolespermission) IamException:- with IamError
IAM_NOT_SUPPORTEDif Nabto Edge IAM is not supported by the device
RETURNS
A list of the available roles.