{"id":3652,"date":"2018-10-16T10:38:26","date_gmt":"2018-10-16T10:38:26","guid":{"rendered":"http:\/\/34.238.172.127\/?page_id=17"},"modified":"2026-02-11T10:08:16","modified_gmt":"2026-02-11T10:08:16","slug":"list-all-users","status":"publish","type":"page","link":"https:\/\/www.hexnode.com\/mobile-device-management\/developers\/users\/list-all-users\/","title":{"rendered":"List all Users"},"content":{"rendered":"<div class=\"method-copy\">\n<div class=\"method-copy-padding\">\n<h2>List all Users<\/h2>\n<p>Returns a list of all enrolled users.<\/p>\n<div class=\"table-responsive\">\n<table id=\"table_61516733\" class=\"table table-bordered\" width=\"100%\">\n<thead>\n<tr>\n<th width=\"20%\"><strong>Parameters<\/strong><\/th>\n<th width=\"12%\"><strong>Type<\/strong><\/th>\n<th width=\"15%\"><strong>Description<\/strong><\/th>\n<th width=\"17%\"><strong>Default value<\/strong><\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>order_by<\/td>\n<td>String<\/td>\n<td>Optional. Order by username. Use <strong>asc<\/strong> or <strong>desc<\/strong><\/td>\n<td>false<\/td>\n<\/tr>\n<tr>\n<td>user_type<\/td>\n<td>String<\/td>\n<td>Optional. Use local or active directory<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>enrollment_status<\/td>\n<td>String<\/td>\n<td>Optional. Use enrolled or unenrolled<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>page<\/td>\n<td>Integer<\/td>\n<td>Optional<\/td>\n<td>1<\/td>\n<\/tr>\n<tr>\n<td>per_page<\/td>\n<td>Integer<\/td>\n<td>Optional. The <strong>maximum value<\/strong> is <strong>250<\/strong><\/td>\n<td>100<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/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\">HTTP Request:<\/p>\n<pre class=\"lang:default decode:true \">GET https:\/\/<portal>.hexnodemdm.com\/api\/v1\/users\/?order_by=as\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\/users\/?order_by=asc\"\r\n<\/pre>\n<\/div>\n<\/div>\n<div class=\"code-curl code-div active-code\">\n<div class=\"method-example-part\">HTTP Response:<\/p>\n<pre class=\"lang:default decode:true\">{\r\n\"count\": 103,\r\n\"next\": https:\/\/.hexnodemdm.com\/api\/v1\/users\/?order_by=asc&amp;page=2\"\r\n\"previous\": null,\r\n\"results\": [\r\n{\r\n\"id\":  \"1\",\r\n\"name\": \"Randy\",\r\n\"email\": \u201drandy@hexnode.com\",\r\n\u201cupn\u201d: \u201crandy@hexnode.com\u201d,\r\n\"phoneno\": \"18664989407\",\r\n\"total_devices\": \"3\",\r\n\"domain\":\"azure\"\r\n},\r\n{\r\n\"id\":  \"2\",\r\n\"name\": \"John\",\r\n\"email\": \u201djohn@hexnode.com\",\r\n\u201cupn\u201d: \u201c\u201d,\r\n\"phoneno\": \"18664989407\",\r\n\"total_devices\": \"3\",\r\n\"domain\":\"local\"\r\n},\r\n...\r\n}\r\n<\/pre>\n<\/div>\n<\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>List all Users Returns a list of all enrolled users. Parameters Type Description Default value order_by String Optional. Order by username. Use asc or desc false user_type String Optional. Use local or active directory enrollment_status String Optional. Use enrolled or unenrolled page Integer Optional 1 per_page Integer Optional. The maximum value is 250 100 curl [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":3651,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_acf_changed":false,"inline_featured_image":false,"footnotes":""},"class_list":["post-3652","page","type-page","status-publish","hentry"],"acf":[],"_links":{"self":[{"href":"https:\/\/www.hexnode.com\/mobile-device-management\/developers\/wp-json\/wp\/v2\/pages\/3652","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=3652"}],"version-history":[{"count":7,"href":"https:\/\/www.hexnode.com\/mobile-device-management\/developers\/wp-json\/wp\/v2\/pages\/3652\/revisions"}],"predecessor-version":[{"id":5013,"href":"https:\/\/www.hexnode.com\/mobile-device-management\/developers\/wp-json\/wp\/v2\/pages\/3652\/revisions\/5013"}],"up":[{"embeddable":true,"href":"https:\/\/www.hexnode.com\/mobile-device-management\/developers\/wp-json\/wp\/v2\/pages\/3651"}],"wp:attachment":[{"href":"https:\/\/www.hexnode.com\/mobile-device-management\/developers\/wp-json\/wp\/v2\/media?parent=3652"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}