Skip to main content
Version: 1.3.0

Retrieve the currently authenticated user

GET 

https://demo.openremote.io/api/master/user/user

Retrieve the currently authenticated user

Request

Header Parameters

    Authorization string
    X-Forwarded-Proto string
    X-Forwarded-Host string

Responses

default response

Schema

    realmstring
    realmIdstring
    idstring
    firstNamestring
    lastNamestring
    emailstring
    enabledboolean
    createdOndate-time
    secretstring

    attributes

    object

    property name*

    string[]

  • Array [

  • string

  • ]

  • serviceAccountboolean
    usernamestring

    Possible values: >= 3 characters and <= 255 characters, Value must match regular expression ^(?=[\p{IsLatin}|\p{IsCommon}]+$)(?=[^<>&"'\s\v\h$%!#?§,;:*~/\\|^=\[\]{}()\p{Cntrl}]+$).*$`

Authorization: oauth2

name: openidtype: oauth2flows: {
  "clientCredentials": {
    "tokenUrl": "/auth/realms/master/protocol/openid-connect/token",
    "refreshUrl": "/auth/realms/master/protocol/openid-connect/token",
    "scopes": {
      "profile": "profile"
    }
  },
  "authorizationCode": {
    "authorizationUrl": "/auth/realms/master/protocol/openid-connect/auth",
    "tokenUrl": "/auth/realms/master/protocol/openid-connect/token",
    "refreshUrl": "/auth/realms/master/protocol/openid-connect/token",
    "scopes": {
      "profile": "profile"
    }
  }
}
curl -L 'https://demo.openremote.io/api/master/user/user' \
-H 'Authorization: Bearer <token>'
Request Collapse all
Base URL
https://demo.openremote.io/api/master
Auth
Parameters
— header
— header
— header
ResponseClear

Click the Send API Request button above and see the response here!