KRON PAM API Collection v3.6.0
User Management
Logged on User List
1 min
code examples curl location globoff '{{url}}/aioc rest web/rest/user/getactivesessionsofusers' \\ \ header 'accept application/json' \\ \ header 'content type application/json' \\ \ header 'x xsrf token {{csrftoken}}'var myheaders = new headers(); myheaders append("accept", "application/json"); myheaders append("content type", "application/json"); myheaders append("x xsrf token", "{{csrftoken}}"); var requestoptions = { method 'get', headers myheaders, redirect 'follow' }; fetch("{{url}}/aioc rest web/rest/user/getactivesessionsofusers", requestoptions) then(response => response text()) then(result => console log(result)) catch(error => console log('error', error));require "uri" require "json" require "net/http" url = uri("{{url}}/aioc rest web/rest/user/getactivesessionsofusers") http = net http new(url host, url port); request = net http get new(url) request\["accept"] = "application/json" request\["content type"] = "application/json" request\["x xsrf token"] = "{{csrftoken}}" response = http request(request) puts response read body import requests import json url = "{{url}}/aioc rest web/rest/user/getactivesessionsofusers" payload = {} headers = { 'accept' 'application/json', 'content type' 'application/json', 'x xsrf token' '{{csrftoken}}' } response = requests request("get", url, headers=headers, data=payload) print(response text) responses \[ { "sessionid" "01b54866 42ff 456d ab0f a8672a96d24c", "userid" "cdc00366 56b6 4874 bd8b 7862549510ab", "sessiontime" 1548401553405, "lastactivitytime" 1548401559298, "properties" { "password" "6qdv8vzowponvvptbfctkg==", "auth" "testuser", "ifsystemliuser" "notliuser", "clientip" "10 20 50 237" }, "usereid" "testuser" }, { "sessionid" "e59a7839 1a62 4d71 a44e 8c32e66ebd8b", "userid" "25e53f47 ce66 4df2 9abc 6961dc668264", "sessiontime" 1548398210113, "lastactivitytime" 1548399449997, "properties" { "password" "rsmm2xuhx+gp/f9jycrpoq==", "auth" "admin", "ifsystemliuser" "notliuser", "clientip" "10 20 50 237" }, "usereid" "admin" }, { "sessionid" "168ef2ab 51d3 446c b9d7 392beb0444f7", "userid" "25e53f47 ce66 4df2 9abc 6961dc668264", "sessiontime" 1548399607102, "lastactivitytime" 1548401566397, "properties" { "password" "rsmm2xuhx+gp/f9jycrpoq==", "auth" "admin", "ifsystemliuser" "notliuser", "clientip" "10 20 50 237" }, "usereid" "admin" } ]