CoAP GET /iam/me

DESCRIPTION

This endpoint is used to get details about the user assosiated with the current connection. It is equivalent to using the get user endpoint if the get user action is allowed by the connection.

Access to this endpoint is always allowed.

DECLARATION

GET /iam/me

REQUEST

Request body is empty.

RESPONSE

CoAP status codes:

  • 205: On success.
  • 404: The client is not paired.

The response body contains a CBOR object with relevant information about the user configured in the device. If a value as described below is not configured for the particular user, it will not be present in the CBOR object. A user must always have a username meaning its field will always exist in the response. The server connect token (SCT) is generated by the device upon user creation and will exist unless the SCT has explicitly been removed from the user.

{
  "Username": "john",
  "DisplayName": "John Doe",
  "Fingerprint": "...",
  "Fingerprints": [
    {
      "Fingerprint": "...",
      "Name": "..."
    },...
  ],
  "OauthSubject": "...",
  "NotificationCategories": ["...", ...],
  "Sct": "...",
  "Role": "r1",
}
Username:
Username identical to the provided username.
DisplayName:
UTF-8 name of user for presenting in the client.
Fingerprint:
*DEPRECATED* Fingerprint of one of the clients paired with this user.
Fingerprints:
Array of named fingerprints of the clients paired with this user.
OauthSubject:
Oauth subject for this user when authenticating using Oauth.
NotificationCategories:
List of notification categories this user is subscribed to.
Sct:
Server Connect Token (SCT) assigned to the user for remote access.
Role:
The role assigned to the user defining which resources it can access.

IAM PARAMETERS

This endpoint has neither action nor attributes as it is always allowed.