{"id":3661,"date":"2018-10-16T10:38:26","date_gmt":"2018-10-16T10:38:26","guid":{"rendered":"http:\/\/34.238.172.127\/?page_id=26"},"modified":"2020-11-20T06:35:59","modified_gmt":"2020-11-20T06:35:59","slug":"retrieve-user-group-details","status":"publish","type":"page","link":"https:\/\/www.hexnode.com\/mobile-device-management\/developers\/user-groups\/retrieve-user-group-details\/","title":{"rendered":"Retrieve User Group Details"},"content":{"rendered":"<div class=\"method-copy\">\n<div class=\"method-copy-padding\">\n<h2> Retrieve User Group Details <\/h2>\n<p>Get the details of a user group.\n<\/p><\/div>\n<\/div>\n<div class=\"method-example\">\n<div class=\"curl-text\">curl<\/div>\n<div class=\"code-curl code-div active-code\">\n<div class=\"method-example-part\">\nHTTP Request:<\/p>\n<pre class=\"lang:default decode:true\">GET https:\/\/<portal>.hexnodemdm.com\/api\/v1\/usergroups\/{USERGROUP_ID}\/ \r\n<\/pre>\n<p>Shell Command:<\/p>\n<pre class=\"lang:default decode:true\">curl -H \"Authorization:<your API key>\" https:\/\/<portal>.hexnodemdm.com\/api\/v1\/usergroups\/{USERGROUP_ID}\/\r\n<\/pre>\n<\/div>\n<\/div>\n<div class=\"code-curl code-div active-code\">\n<div class=\"method-example-part\">\nHTTP Response:<\/p>\n<pre class=\"lang:default decode:true\">{  \r\n\"id\":  \r\n\"groupname\":\"example\"  \r\n\"description\":\"ios usergroup\",  \r\n\"users\":[ \r\n{  \r\n\"id\":  1, \r\n\"name\":\"neil\", \r\n\"email\":\"neil@hexnode.com\",  \r\n\"domain\": \"local\", \r\n\"phoneno\": \"9878799678\" \r\n} \r\n],  \r\n\"policies\":[ \r\n{  \r\n\"id\": 1, \r\n\"name\":\"ios mandatory policy\", \r\n\"version\":3,  \r\n\"created_time\": \"2017-04-12T13:05:32.237Z\"  \r\n} \r\n],  \r\n\"location_history\":[ \r\n{ \r\n\"user_id\" : 1, \r\n\"user_name\": \"Randy Hall\",  \r\n\"place_name\": \"Walnut, CA 91789, USA\", \"device_name\": \"OnePlusONE E1003\", \"last_location_time\": \"2017-03-29T02:15:05.175Z\",  \r\n\"longitude\": \"-122.0638889\",  \r\n\"latitude\": \"37.9063889\" \r\n},  \r\n{ \r\n\"user_id\": 2 \r\n\"user_name\": \"Liz\",  \r\n\"lplace_name\": \"Brisbane, QLD, Australia\", \"device_name\": \"XiaomiRedmi Note 4\", \"last_location_time\": \"2017-03-30T09:00:08.901Z\",  \r\n\"longitude\": \"-27.470125\",  \r\n\"latitude\": \"153.021072\" \r\n} \r\n] \r\n}\r\n<\/pre>\n<\/div>\n<\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>Retrieve User Group Details Get the details of a user group. curl HTTP Request: GET https:\/\/.hexnodemdm.com\/api\/v1\/usergroups\/{USERGROUP_ID}\/ Shell Command: curl -H &#8220;Authorization:&#8221; https:\/\/.hexnodemdm.com\/api\/v1\/usergroups\/{USERGROUP_ID}\/ HTTP Response: { &#8220;id&#8221;: &#8220;groupname&#8221;:&#8221;example&#8221; &#8220;description&#8221;:&#8221;ios usergroup&#8221;, &#8220;users&#8221;:[ { &#8220;id&#8221;: 1, &#8220;name&#8221;:&#8221;neil&#8221;, &#8220;email&#8221;:&#8221;neil@hexnode.com&#8221;, &#8220;domain&#8221;: &#8220;local&#8221;, &#8220;phoneno&#8221;: &#8220;9878799678&#8221; } ], &#8220;policies&#8221;:[ { &#8220;id&#8221;: 1, &#8220;name&#8221;:&#8221;ios mandatory policy&#8221;, &#8220;version&#8221;:3, &#8220;created_time&#8221;: &#8220;2017-04-12T13:05:32.237Z&#8221; } ], &#8220;location_history&#8221;:[ { [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":3658,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_acf_changed":false,"inline_featured_image":false,"footnotes":""},"class_list":["post-3661","page","type-page","status-publish","hentry"],"acf":[],"_links":{"self":[{"href":"https:\/\/www.hexnode.com\/mobile-device-management\/developers\/wp-json\/wp\/v2\/pages\/3661","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.hexnode.com\/mobile-device-management\/developers\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.hexnode.com\/mobile-device-management\/developers\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/www.hexnode.com\/mobile-device-management\/developers\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.hexnode.com\/mobile-device-management\/developers\/wp-json\/wp\/v2\/comments?post=3661"}],"version-history":[{"count":1,"href":"https:\/\/www.hexnode.com\/mobile-device-management\/developers\/wp-json\/wp\/v2\/pages\/3661\/revisions"}],"predecessor-version":[{"id":3992,"href":"https:\/\/www.hexnode.com\/mobile-device-management\/developers\/wp-json\/wp\/v2\/pages\/3661\/revisions\/3992"}],"up":[{"embeddable":true,"href":"https:\/\/www.hexnode.com\/mobile-device-management\/developers\/wp-json\/wp\/v2\/pages\/3658"}],"wp:attachment":[{"href":"https:\/\/www.hexnode.com\/mobile-device-management\/developers\/wp-json\/wp\/v2\/media?parent=3661"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}