<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic REST GET request to get list of AD users in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/REST-GET-request-to-get-list-of-AD-users/m-p/473468#M81331</link>
    <description>&lt;P&gt;Hello, I'm trying the following request in Postman to send a request to get the list of Active Directory users:&lt;BR /&gt;
&lt;A href="http://:8000/en-GB/manager/search/authentication/users" target="test_blank"&gt;http://:8000/en-GB/manager/search/authentication/users&lt;/A&gt; | fields  title roles realname&lt;BR /&gt;
 The request header has the basic authencation and I get a 200 response.&lt;/P&gt;

&lt;P&gt;However, the response body is not what I expected. I'm getting the following response  body:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;!doctype html&amp;gt;
&amp;lt;!--[if lt IE 7]&amp;gt; &amp;lt;html class="no-js ie  lt-ie9 lt-ie8 lt-ie7"&amp;gt; &amp;lt;![endif]--&amp;gt;
&amp;lt;!--[if IE 7]&amp;gt;    &amp;lt;html class="no-js ie7 lt-ie9 lt-ie8"&amp;gt; &amp;lt;![endif]--&amp;gt;
&amp;lt;!--[if IE 8]&amp;gt;    &amp;lt;html class="no-js ie8 lt-ie9"&amp;gt; &amp;lt;![endif]--&amp;gt;
&amp;lt;!--[if IE 9]&amp;gt;    &amp;lt;html class="no-js ie9"&amp;gt; &amp;lt;![endif]--&amp;gt;
&amp;lt;!--[if gt IE 9]&amp;gt;&amp;lt;!--&amp;gt; &amp;lt;html class="no-js"&amp;gt; &amp;lt;!--&amp;lt;![endif]--&amp;gt;
&amp;lt;head&amp;gt;
    &amp;lt;meta charset="utf-8" /&amp;gt;
    &amp;lt;meta http-equiv="X-UA-Compatible" content="IE=edge" /&amp;gt;
    &amp;lt;title&amp;gt;&amp;lt;/title&amp;gt;
    &amp;lt;meta name="description" content="listen to your data" /&amp;gt;
    &amp;lt;meta name="author" content="Splunk Inc." /&amp;gt;
    &amp;lt;meta name="viewport" content="width=device-width, initial-scale=1.0" /&amp;gt;
    &amp;lt;meta name="referrer" content="origin" /&amp;gt;
    &amp;lt;script type="text/json" id="splunkd-partials"&amp;gt;
{"/services/session":{"messages":[],"links":{},"entry":[{"fields":{"optional":[],"required":[],"wildcard":[]},"acl
.....
    &amp;lt;/script&amp;gt;
    &amp;lt;script&amp;gt; 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;When click on Postman's Preview tab, it says "Splunk relies on JavaScript to function properly.&lt;BR /&gt;
Please enable JavaScript and then refresh the page to login."&lt;/P&gt;

&lt;P&gt;Is my reqest correct for Splunk Enterprise version 7.3.1)&lt;BR /&gt;
Note that I was able to get the expected result when I try the search command in the GUI: &lt;BR /&gt;
 | rest /services/authentication/users | fields title roles realname &lt;BR /&gt;
Thanks in advance&lt;/P&gt;</description>
    <pubDate>Thu, 16 Apr 2020 15:42:22 GMT</pubDate>
    <dc:creator>michellertx</dc:creator>
    <dc:date>2020-04-16T15:42:22Z</dc:date>
    <item>
      <title>REST GET request to get list of AD users</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/REST-GET-request-to-get-list-of-AD-users/m-p/473468#M81331</link>
      <description>&lt;P&gt;Hello, I'm trying the following request in Postman to send a request to get the list of Active Directory users:&lt;BR /&gt;
&lt;A href="http://:8000/en-GB/manager/search/authentication/users" target="test_blank"&gt;http://:8000/en-GB/manager/search/authentication/users&lt;/A&gt; | fields  title roles realname&lt;BR /&gt;
 The request header has the basic authencation and I get a 200 response.&lt;/P&gt;

&lt;P&gt;However, the response body is not what I expected. I'm getting the following response  body:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;!doctype html&amp;gt;
&amp;lt;!--[if lt IE 7]&amp;gt; &amp;lt;html class="no-js ie  lt-ie9 lt-ie8 lt-ie7"&amp;gt; &amp;lt;![endif]--&amp;gt;
&amp;lt;!--[if IE 7]&amp;gt;    &amp;lt;html class="no-js ie7 lt-ie9 lt-ie8"&amp;gt; &amp;lt;![endif]--&amp;gt;
&amp;lt;!--[if IE 8]&amp;gt;    &amp;lt;html class="no-js ie8 lt-ie9"&amp;gt; &amp;lt;![endif]--&amp;gt;
&amp;lt;!--[if IE 9]&amp;gt;    &amp;lt;html class="no-js ie9"&amp;gt; &amp;lt;![endif]--&amp;gt;
&amp;lt;!--[if gt IE 9]&amp;gt;&amp;lt;!--&amp;gt; &amp;lt;html class="no-js"&amp;gt; &amp;lt;!--&amp;lt;![endif]--&amp;gt;
&amp;lt;head&amp;gt;
    &amp;lt;meta charset="utf-8" /&amp;gt;
    &amp;lt;meta http-equiv="X-UA-Compatible" content="IE=edge" /&amp;gt;
    &amp;lt;title&amp;gt;&amp;lt;/title&amp;gt;
    &amp;lt;meta name="description" content="listen to your data" /&amp;gt;
    &amp;lt;meta name="author" content="Splunk Inc." /&amp;gt;
    &amp;lt;meta name="viewport" content="width=device-width, initial-scale=1.0" /&amp;gt;
    &amp;lt;meta name="referrer" content="origin" /&amp;gt;
    &amp;lt;script type="text/json" id="splunkd-partials"&amp;gt;
{"/services/session":{"messages":[],"links":{},"entry":[{"fields":{"optional":[],"required":[],"wildcard":[]},"acl
.....
    &amp;lt;/script&amp;gt;
    &amp;lt;script&amp;gt; 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;When click on Postman's Preview tab, it says "Splunk relies on JavaScript to function properly.&lt;BR /&gt;
Please enable JavaScript and then refresh the page to login."&lt;/P&gt;

&lt;P&gt;Is my reqest correct for Splunk Enterprise version 7.3.1)&lt;BR /&gt;
Note that I was able to get the expected result when I try the search command in the GUI: &lt;BR /&gt;
 | rest /services/authentication/users | fields title roles realname &lt;BR /&gt;
Thanks in advance&lt;/P&gt;</description>
      <pubDate>Thu, 16 Apr 2020 15:42:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/REST-GET-request-to-get-list-of-AD-users/m-p/473468#M81331</guid>
      <dc:creator>michellertx</dc:creator>
      <dc:date>2020-04-16T15:42:22Z</dc:date>
    </item>
    <item>
      <title>Re: REST GET request to get list of AD users</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/REST-GET-request-to-get-list-of-AD-users/m-p/473469#M81332</link>
      <description>&lt;P&gt;Are you trying port 8000 or port 8089 -- command port is usually 8089.&lt;/P&gt;</description>
      <pubDate>Fri, 17 Apr 2020 01:52:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/REST-GET-request-to-get-list-of-AD-users/m-p/473469#M81332</guid>
      <dc:creator>memarshall63</dc:creator>
      <dc:date>2020-04-17T01:52:54Z</dc:date>
    </item>
    <item>
      <title>Re: REST GET request to get list of AD users</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/REST-GET-request-to-get-list-of-AD-users/m-p/473470#M81333</link>
      <description>&lt;P&gt;Hi, When I try https, port 8089, I'm getting a 404 return&lt;/P&gt;</description>
      <pubDate>Fri, 17 Apr 2020 13:17:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/REST-GET-request-to-get-list-of-AD-users/m-p/473470#M81333</guid>
      <dc:creator>michellertx</dc:creator>
      <dc:date>2020-04-17T13:17:14Z</dc:date>
    </item>
  </channel>
</rss>

