IamUtil.getUser()
DESCRIPTION
Get details about a specific user.
This function blocks until it has succeeded.
DECLARATION
public abstract IamUser getUser(Connection connection, String username)
PARAMETERS
connection:- An established connection to the device
username:- Username of the user to get
THROWS EXCEPTIONS
IamException:- with IamError
USER_DOES_NOT_EXISTif the user does not exist on the device IamException:- with IamError
BLOCKED_BY_DEVICE_CONFIGURATIONif the device configuration does not allow retrieving this user (theIAM:GetUseraction is not set for the requesting role) IamException:- with IamError
IAM_NOT_SUPPORTEDif Nabto Edge IAM is not supported by the device
RETURNS
an IamUser instance describing the requested user