Retrieve sessions for a user in a realm
GEThttps://demo.openremote.io/api/master/user/:realm/userSessions/:userId
Retrieve sessions for a user in a realm
Request
Path Parameters
realm stringrequired
userId stringrequired
Header Parameters
Authorization string
X-Forwarded-Proto string
X-Forwarded-Host string
Responses
- default
default response
- application/json
- Schema
- Example (auto)
Schema
- Array [
- ]
IDstring
usernamestring
startTimeMillisint64
remoteAddressstring
[
{
"ID": "string",
"username": "string",
"startTimeMillis": 0,
"remoteAddress": "string"
}
]
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
- nodejs
- java
- python
- ruby
- csharp
- go
- php
- powershell
- CURL
curl -L 'https://demo.openremote.io/api/master/user/:realm/userSessions/:userId' \
-H 'Authorization: Bearer <token>'
ResponseClear