Get details about the user that has opened the current connection to the device.
static public func getCurrentUser(connection: Connection) throws -> IamUser
- An established connection to the device
Throws the following errors:
- if the current user is not paired with the device.
- if Nabto Edge IAM is not supported by the device
an IamUser instance describing the current user