Skip to main content
Version: 1.3.0

Retrieve client roles for a user using a client ID in a realm

GET 

https://demo.openremote.io/api/master/user/:realm/userRoles/:userId/:clientId

Retrieve client roles for a user using a client ID in a realm

Request

Path Parameters

    realm stringrequired
    userId stringrequired
    clientId stringrequired

Header Parameters

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

Responses

default response

Schema

  • Array [

  • idstring
    namestring
    descriptionstring
    compositeboolean
    assignedboolean
    compositeRoleIdsstring[]
  • ]

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/:realm/userRoles/:userId/:clientId' \
-H 'Authorization: Bearer <token>'
Request Collapse all
Base URL
https://demo.openremote.io/api/master
Auth
Parameters
— pathrequired
— pathrequired
— pathrequired
— header
— header
— header
ResponseClear

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