<?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 Re: REST API - permissions issue in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/What-special-capabilities-permissions-are-required-to-run-the/m-p/622178#M107119</link>
    <description>&lt;P&gt;&lt;FONT color="#3366FF"&gt;&lt;I&gt;&lt;SPAN&gt;Hi&amp;nbsp;&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/251656"&gt;@Subarna&lt;/a&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/I&gt;&lt;I&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/I&gt;&lt;I&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/I&gt;I’m a Community Moderator in the Splunk Community. Thanks for contributing as a member in the forum!&lt;BR /&gt;&lt;BR /&gt;This question was posted&amp;nbsp; 10 years ago and might not get the attention you need for your own question to be answered. I suggest you please post a brand new question so your issue can get more visibility. To increase your chances of getting help from the community,&lt;STRONG&gt;(Please feel free to link to this answer in your question, but try to describe the issue clearly yourself, in case there are any details that might matter that were different for you from this prior post.)&lt;/STRONG&gt;&amp;nbsp;follow&amp;nbsp;&lt;A href="http://docs.splunk.com/Documentation/Splunkbase/splunkbase/Answers/Questions?_gl=1*ib2wlv*_ga*MTQyNTMxNjM3MS4xNjYzODIyMzQw*_gid*MjA1Njg1NzQ5NC4xNjY1ODIxODQy&amp;amp;_ga=2.52320938.2056857494.1665821842-1425316371.1663822340" target="_blank" rel="noopener nofollow noreferrer"&gt;these guidelines&lt;/A&gt; in the Splunk Answers User Manual when creating your post.&lt;/FONT&gt;&lt;/P&gt;</description>
    <pubDate>Sun, 27 Nov 2022 04:10:46 GMT</pubDate>
    <dc:creator>SanjayReddy</dc:creator>
    <dc:date>2022-11-27T04:10:46Z</dc:date>
    <item>
      <title>What special capabilities (permissions) are required to run the REST API?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/What-special-capabilities-permissions-are-required-to-run-the/m-p/74747#M15263</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;What special capabilities (permissions) are required to run the REST API? A colleague and I are both running one of the search examples: he gets results, but I get a FATAL empty search error. He is an admin, but I am not (though I do have access via the web to run queries).&lt;/P&gt;
&lt;P&gt;Robert&lt;BR /&gt;P.S. My role "dealing" is equivalent to the built in "power" role, capabilties are:&lt;/P&gt;
&lt;P&gt;change_own_password&lt;BR /&gt;get_metadata&lt;BR /&gt;get_typeahead&lt;BR /&gt;list_inputs&lt;BR /&gt;request_remote_tok&lt;BR /&gt;rest_apps_view&lt;BR /&gt;rest_properties_get&lt;BR /&gt;rest_properties_set&lt;BR /&gt;rtsearch&lt;BR /&gt;schedule_search&lt;BR /&gt;search&lt;/P&gt;</description>
      <pubDate>Sun, 27 Nov 2022 15:32:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/What-special-capabilities-permissions-are-required-to-run-the/m-p/74747#M15263</guid>
      <dc:creator>rmorschel</dc:creator>
      <dc:date>2022-11-27T15:32:21Z</dc:date>
    </item>
    <item>
      <title>Re: REST API - permissions issue</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/What-special-capabilities-permissions-are-required-to-run-the/m-p/74748#M15264</link>
      <description>&lt;P&gt;I only know enough to confirm that it's a complex topic. See &lt;A href="http://docs.splunk.com/Documentation/Splunk/latest/RESTAPI/RESTresources"&gt;Accessing Splunk resources&lt;/A&gt; in the REST API Reference for more information about the particulars. You might need to have admin permissions to get the results you want. Other (more knowledgable!) people might have a better answer for you.&lt;/P&gt;</description>
      <pubDate>Fri, 28 Sep 2012 16:51:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/What-special-capabilities-permissions-are-required-to-run-the/m-p/74748#M15264</guid>
      <dc:creator>ChrisG</dc:creator>
      <dc:date>2012-09-28T16:51:57Z</dc:date>
    </item>
    <item>
      <title>Re: REST API - permissions issue</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/What-special-capabilities-permissions-are-required-to-run-the/m-p/74749#M15265</link>
      <description>&lt;P&gt;Thanks for this.  What bothers me is that all the examples use an admin user...  which is an issue for me since I am not an admin, and shouldn't really need to be.&lt;/P&gt;

&lt;P&gt;Hopefully someone else will shed some light on this.&lt;/P&gt;</description>
      <pubDate>Mon, 01 Oct 2012 08:01:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/What-special-capabilities-permissions-are-required-to-run-the/m-p/74749#M15265</guid>
      <dc:creator>rmorschel</dc:creator>
      <dc:date>2012-10-01T08:01:31Z</dc:date>
    </item>
    <item>
      <title>Re: REST API - permissions issue</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/What-special-capabilities-permissions-are-required-to-run-the/m-p/74750#M15266</link>
      <description>&lt;P&gt;Just done some testing and my test user with the user role can access all endpoints I would expect a user to based on their permissions within Splunk. E.g. it can view role information that relates to its user only. If I try to access anything for the admin user via servicesNS then it correctly throws a, &lt;CODE&gt;In handler 'users': You do not have permissions to access objects of user=admin&lt;/CODE&gt; at me.&lt;/P&gt;

&lt;P&gt;Is the search you're running a saved search with only his permissions to run? If you paste the details and steps you take I'd be happy to give it a proper try step by step.&lt;/P&gt;</description>
      <pubDate>Mon, 01 Oct 2012 08:41:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/What-special-capabilities-permissions-are-required-to-run-the/m-p/74750#M15266</guid>
      <dc:creator>Drainy</dc:creator>
      <dc:date>2012-10-01T08:41:55Z</dc:date>
    </item>
    <item>
      <title>Re: REST API - permissions issue</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/What-special-capabilities-permissions-are-required-to-run-the/m-p/74751#M15267</link>
      <description>&lt;P&gt;well you're trying to hit the admin user endpoint there, instead of /admin/search you need to use /morschr/search. EDIT: Just tested it with my test user and hitting /test/search and it returned perfectly &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 01 Oct 2012 09:33:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/What-special-capabilities-permissions-are-required-to-run-the/m-p/74751#M15267</guid>
      <dc:creator>Drainy</dc:creator>
      <dc:date>2012-10-01T09:33:32Z</dc:date>
    </item>
    <item>
      <title>Re: REST API - permissions issue</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/What-special-capabilities-permissions-are-required-to-run-the/m-p/74752#M15268</link>
      <description>&lt;P&gt;The problem appears to have been with the version of curl I was using.  This works fine with &lt;BR /&gt;
curl 7.15.5 (x86_64-redhat-linux-gnu) libcurl/7.15.5 OpenSSL/0.9.8b zlib/1.2.3 libidn/0.6.5&lt;/P&gt;

&lt;P&gt;whereas&lt;/P&gt;

&lt;P&gt;curl 7.21.0 (amd64-pc-win32) libcurl/7.21.0 OpenSSL/0.9.8o zlib/1.2.3&lt;/P&gt;

&lt;P&gt;did not work.&lt;/P&gt;</description>
      <pubDate>Mon, 01 Oct 2012 12:13:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/What-special-capabilities-permissions-are-required-to-run-the/m-p/74752#M15268</guid>
      <dc:creator>rmorschel</dc:creator>
      <dc:date>2012-10-01T12:13:57Z</dc:date>
    </item>
    <item>
      <title>Re: REST API - permissions issue</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/What-special-capabilities-permissions-are-required-to-run-the/m-p/74753#M15269</link>
      <description>&lt;P&gt;It took us awhile to get for Graphistry! For running regular Splunk REST searches without needing an admin user, create a role with capabilities &lt;CODE&gt;search&lt;/CODE&gt; and &lt;CODE&gt;rest_properties_get&lt;/CODE&gt; and assign that role to your user. You can build up from there.&lt;/P&gt;</description>
      <pubDate>Wed, 08 Aug 2018 02:05:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/What-special-capabilities-permissions-are-required-to-run-the/m-p/74753#M15269</guid>
      <dc:creator>leomeyerovich</dc:creator>
      <dc:date>2018-08-08T02:05:14Z</dc:date>
    </item>
    <item>
      <title>Re: REST API - permissions issue</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/What-special-capabilities-permissions-are-required-to-run-the/m-p/622160#M107114</link>
      <description>&lt;P&gt;Hi Team&lt;/P&gt;&lt;P&gt;&amp;nbsp; I am getting the below error while trying to access&amp;nbsp; splunk Rest API . . I am trying to login using the username and password.&amp;nbsp; Is there any other access required to successfully Login .Please help on the same.&lt;/P&gt;&lt;P&gt;Below is the code snippet&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Map&amp;lt;String,Object&amp;gt; connectionArgs=new HashMap&amp;lt;String,Object&amp;gt;();&lt;BR /&gt;connectionArgs.put("host", "myHost");&lt;/P&gt;&lt;P&gt;connectionArgs.put("username", "myUsename");&lt;BR /&gt;connectionArgs.put("password", "myPassword");&lt;BR /&gt;connectionArgs.put("port",8089);&lt;BR /&gt;connectionArgs.put("scheme","https");&lt;BR /&gt;&lt;BR /&gt;HttpService.setSslSecurityProtocol(SSLSecurityProtocol.TLSv1_2);&lt;/P&gt;&lt;P&gt;Service service=Service.connect(connectionArgs);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Exception in thread "main" com.splunk.HttpException: HTTP 401 -- Login failed&lt;BR /&gt;at com.splunk.HttpException.create(HttpException.java:84)&lt;BR /&gt;at com.splunk.HttpService.send(HttpService.java:452)&lt;BR /&gt;at com.splunk.Service.send(Service.java:1293)&lt;BR /&gt;at com.splunk.HttpService.post(HttpService.java:308)&lt;/P&gt;</description>
      <pubDate>Sat, 26 Nov 2022 13:51:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/What-special-capabilities-permissions-are-required-to-run-the/m-p/622160#M107114</guid>
      <dc:creator>Subarna</dc:creator>
      <dc:date>2022-11-26T13:51:11Z</dc:date>
    </item>
    <item>
      <title>Re: REST API - permissions issue</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/What-special-capabilities-permissions-are-required-to-run-the/m-p/622178#M107119</link>
      <description>&lt;P&gt;&lt;FONT color="#3366FF"&gt;&lt;I&gt;&lt;SPAN&gt;Hi&amp;nbsp;&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/251656"&gt;@Subarna&lt;/a&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/I&gt;&lt;I&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/I&gt;&lt;I&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/I&gt;I’m a Community Moderator in the Splunk Community. Thanks for contributing as a member in the forum!&lt;BR /&gt;&lt;BR /&gt;This question was posted&amp;nbsp; 10 years ago and might not get the attention you need for your own question to be answered. I suggest you please post a brand new question so your issue can get more visibility. To increase your chances of getting help from the community,&lt;STRONG&gt;(Please feel free to link to this answer in your question, but try to describe the issue clearly yourself, in case there are any details that might matter that were different for you from this prior post.)&lt;/STRONG&gt;&amp;nbsp;follow&amp;nbsp;&lt;A href="http://docs.splunk.com/Documentation/Splunkbase/splunkbase/Answers/Questions?_gl=1*ib2wlv*_ga*MTQyNTMxNjM3MS4xNjYzODIyMzQw*_gid*MjA1Njg1NzQ5NC4xNjY1ODIxODQy&amp;amp;_ga=2.52320938.2056857494.1665821842-1425316371.1663822340" target="_blank" rel="noopener nofollow noreferrer"&gt;these guidelines&lt;/A&gt; in the Splunk Answers User Manual when creating your post.&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 27 Nov 2022 04:10:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/What-special-capabilities-permissions-are-required-to-run-the/m-p/622178#M107119</guid>
      <dc:creator>SanjayReddy</dc:creator>
      <dc:date>2022-11-27T04:10:46Z</dc:date>
    </item>
  </channel>
</rss>

