KRON PAM API Collection v3.7.0
Device Management
Get Device Realm By User Group Name
1 min
code examples curl location globoff '{{url}}/aioc rest web/rest/discovery/getdevicerealmbyusergroupname/usergroupname' \\ \ 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/discovery/getdevicerealmbyusergroupname/usergroupname", 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/discovery/getdevicerealmbyusergroupname/usergroupname") 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/discovery/getdevicerealmbyusergroupname/usergroupname" 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 \[ { "dbid" 703295, "id" null, "name" "dr testusergroup", "description" null, "devicegroups" \[ { "dbid" 703284, "id" "d2eb1d13 98d3 444d afe8 7a7759583a19", "name" "ssh", "description" null, "parentgroupid" null, "ifaceoperationcheck" false, "timetolerance" null, "realms" \[ 703295 ], "deviceids" \[ 703328 ], "properties" { "globalusername" "root", "globalpassword" "cqauvrmsqausvep6dcls6a==" }, "children" null, "devices" null, "rootgroupid" null, "globalusername" "root", "globalpassword" "cqauvrmsqausvep6dcls6a==", "showindevicetree" true, "useasrolegroup" true, "discoverysources" null, "readonly" false }, { "dbid" 703281, "id" "a8932a7d 15fc 454d 8fc6 71588bbec3c0", "name" "windows", "description" null, "parentgroupid" null, "ifaceoperationcheck" false, "timetolerance" null, "realms" \[ 703295 ], "deviceids" \[ 300385 ], "properties" { "globalusername" "administrator", "globalpassword" "yiyelvgqr/vp6zsuiwubvg==" }, "children" null, "devices" null, "rootgroupid" null, "globalusername" "administrator", "globalpassword" "yiyelvgqr/vp6zsuiwubvg==", "showindevicetree" true, "useasrolegroup" true, "discoverysources" null, "readonly" false } ], "usergroups" \[ { "id" "3a6da328 7349 4959 a15e b4187dcba1c8", "eid" "ug testusergroup", "description" null, "users" \[ { "id" "25e53f47 ce66 4df2 9abc 6961dc668264", "eid" "admin", "personelid" null, "name" "administrator", "passwordalgorithm" null, "password" "21232f297a57a5a743894a0e4a801fc3", "email" null, "surname" "administrator", "internal" true, "properties" { "ubathreshold" "50" }, "groups" \[ "829f4d39 54f9 4a76 bf5c 26531cedbca7", "default group sysyem admins", "1b64202f 8f1f 466f 8e33 f56c93ec37b3", "default group sysyem users", "3a6da328 7349 4959 a15e b4187dcba1c8" ], "managergroups" \[ "default group sysyem admins", "1b64202f 8f1f 466f 8e33 f56c93ec37b3", "3a6da328 7349 4959 a15e b4187dcba1c8" ], "lastlogin" 1578313463235, "lastloginip" "10 20 50 99", "grouppropertykey4search" null, "grouppropertyvalue4search" null, "recordlimit4search" null, "passworddirty" false, "passwordautogenerated" false, "filterfunctionname" null, "filtermembershipuserid" null, "filtermanagerid" null, "filtereidlist" null, "filtermanagerofuserid" null, "phonenumber" null, "forcechangepasswordonnextlogin" false, "lockreason" null, "unlockonpasswordchanged" false, "unlocktime" null, "tempuserendtime" null, "tempuserstarttime" null, "tempuser" false, "externaldirectorysource" null, "userpropertykey4search" null, "userpropertyvalue4search" null, "locked" false }, { "id" "deda0ba4 1052 430e a90f 05ef5e0e098b", "eid" "testuser", "personelid" null, "name" "testuser", "passwordalgorithm" "md5", "password" "202cb962ac59075b964b07152d234b70", "email" "testuser\@wf com", "surname" "testuser", "internal" true, "properties" { "ubathreshold" "50" }, "groups" \[ "default group sysyem users", "3a6da328 7349 4959 a15e b4187dcba1c8" ], "managergroups" \[], "lastlogin" null, "lastloginip" null, "grouppropertykey4search" null, "grouppropertyvalue4search" null, "recordlimit4search" null, "passworddirty" false, "passwordautogenerated" false, "filterfunctionname" null, "filtermembershipuserid" null, "filtermanagerid" null, "filtereidlist" null, "filtermanagerofuserid" null, "phonenumber" null, "forcechangepasswordonnextlogin" false, "lockreason" null, "unlockonpasswordchanged" false, "unlocktime" null, "tempuserendtime" null, "tempuserstarttime" null, "tempuser" false, "externaldirectorysource" null, "userpropertykey4search" null, "userpropertyvalue4search" null, "locked" false } ], "managers" \[ { "id" "25e53f47 ce66 4df2 9abc 6961dc668264", "eid" "admin", "personelid" null, "name" "administrator", "passwordalgorithm" null, "password" "21232f297a57a5a743894a0e4a801fc3", "email" null, "surname" "administrator", "internal" true, "properties" { "ubathreshold" "50" }, "groups" \[ "829f4d39 54f9 4a76 bf5c 26531cedbca7", "default group sysyem admins", "1b64202f 8f1f 466f 8e33 f56c93ec37b3", "default group sysyem users", "3a6da328 7349 4959 a15e b4187dcba1c8" ], "managergroups" \[ "default group sysyem admins", "1b64202f 8f1f 466f 8e33 f56c93ec37b3", "3a6da328 7349 4959 a15e b4187dcba1c8" ], "lastlogin" 1578313463235, "lastloginip" "10 20 50 99", "grouppropertykey4search" null, "grouppropertyvalue4search" null, "recordlimit4search" null, "passworddirty" false, "passwordautogenerated" false, "filterfunctionname" null, "filtermembershipuserid" null, "filtermanagerid" null, "filtereidlist" null, "filtermanagerofuserid" null, "phonenumber" null, "forcechangepasswordonnextlogin" false, "lockreason" null, "unlockonpasswordchanged" false, "unlocktime" null, "tempuserendtime" null, "tempuserstarttime" null, "tempuser" false, "externaldirectorysource" null, "userpropertykey4search" null, "userpropertyvalue4search" null, "locked" false } ], "realms" \[], "devicerealms" \[ 703295 ], "properties" { "approvalrequiredforconnection" "false", "allowconsoleaccess" "false", "admingroup" "false", "autonomousgroup" "false", "allowdirectaccess" "false" }, "recordlimit4search" null, "grouppropertykey4search" null, "grouppropertyvalue4search" null, "filtergroupidlist" null, "passwordttl" null, "systemgroup" false, "registrationrole" false, "admingroup" false, "autonomousgroup" false, "approvalrequired" false, "externaldirectorysources" null, "otpenabled" false, "sshproxyenabled" false, "rdpproxyenabled" false, "httpproxyenabled" false, "sftpproxyenabled" false, "sqlproxyenabled" false, "containlocaluser4search" false, "allowdirectaccess" false, "allowconsoleaccess" false } ], "policykeyrealms" \[] } ]