<?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: How do I authorize a user to use the REST API? in Security</title>
    <link>https://community.splunk.com/t5/Security/How-do-I-authorize-a-user-to-use-the-REST-API/m-p/228323#M6480</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;when i search index=_internal &lt;/P&gt;

&lt;P&gt;It seems that I have no ldap authorization...&lt;BR /&gt;
But it is not an ldap user...&lt;/P&gt;

&lt;P&gt;And I have an another user with the same configuration and it works with api rest.&lt;/P&gt;</description>
    <pubDate>Tue, 17 Nov 2015 14:24:20 GMT</pubDate>
    <dc:creator>jbechchar</dc:creator>
    <dc:date>2015-11-17T14:24:20Z</dc:date>
    <item>
      <title>How do I authorize a user to use the REST API?</title>
      <link>https://community.splunk.com/t5/Security/How-do-I-authorize-a-user-to-use-the-REST-API/m-p/228320#M6477</link>
      <description>&lt;P&gt;Hi everybody,&lt;/P&gt;

&lt;P&gt;I have a problem with a user.&lt;BR /&gt;
I've just created a new user and it seems ok when I use it with Splunk.&lt;BR /&gt;
However, I have no authorization when I try to use it with REST. &lt;/P&gt;

&lt;P&gt;Is there a particular parameter to use the REST API with a certain user?&lt;/P&gt;

&lt;P&gt;Thanks in advance&lt;/P&gt;

&lt;P&gt;best regards,&lt;/P&gt;</description>
      <pubDate>Mon, 16 Nov 2015 17:25:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/How-do-I-authorize-a-user-to-use-the-REST-API/m-p/228320#M6477</guid>
      <dc:creator>jbechchar</dc:creator>
      <dc:date>2015-11-16T17:25:37Z</dc:date>
    </item>
    <item>
      <title>Re: How do I authorize a user to use the REST API?</title>
      <link>https://community.splunk.com/t5/Security/How-do-I-authorize-a-user-to-use-the-REST-API/m-p/228321#M6478</link>
      <description>&lt;P&gt;Yes, you'll need to add certain capabilities to that user or that users's role(s).&lt;/P&gt;

&lt;P&gt;This can be done by going to Settings &amp;gt; Access Controls &amp;gt; Roles - then choosing a role and scrolling to about halfway down the page. Then chose which capabilities are enabled for that particular role.&lt;/P&gt;

&lt;HR /&gt;

&lt;P&gt;The relevant conf is &lt;A href="http://docs.splunk.com/Documentation/Splunk/latest/admin/authorizeconf"&gt;authorize.conf&lt;/A&gt;:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[capability::rest_apps_view]
        * Required to list various properties in the python remote apps handler.
        * See restmap.conf for more info

[capability::rest_properties_get]
        * Required to get information from the services/properties endpoint.

[capability::rest_properties_set]
        * Required to edit the services/properties endpoint.
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Note that you may need to also look at &lt;CODE&gt;restmap.conf&lt;/CODE&gt; depending on what you're trying to do. However, most likely, you just need to add the capabilities defined above.&lt;/P&gt;</description>
      <pubDate>Mon, 16 Nov 2015 17:49:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/How-do-I-authorize-a-user-to-use-the-REST-API/m-p/228321#M6478</guid>
      <dc:creator>aljohnson_splun</dc:creator>
      <dc:date>2015-11-16T17:49:34Z</dc:date>
    </item>
    <item>
      <title>Re: How do I authorize a user to use the REST API?</title>
      <link>https://community.splunk.com/t5/Security/How-do-I-authorize-a-user-to-use-the-REST-API/m-p/228322#M6479</link>
      <description>&lt;P&gt;Hi aljohnson,&lt;/P&gt;

&lt;P&gt;Thanks for your answer.&lt;/P&gt;

&lt;P&gt;But, I have already theses capabalities for my role.&lt;/P&gt;

&lt;P&gt;That's why I don't understand why I cannot do a curl request...&lt;/P&gt;

&lt;P&gt;It is possible to request on the api with the Admin user... &lt;/P&gt;

&lt;P&gt;Another idea ? &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; &lt;/P&gt;</description>
      <pubDate>Tue, 17 Nov 2015 09:07:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/How-do-I-authorize-a-user-to-use-the-REST-API/m-p/228322#M6479</guid>
      <dc:creator>jbechchar</dc:creator>
      <dc:date>2015-11-17T09:07:49Z</dc:date>
    </item>
    <item>
      <title>Re: How do I authorize a user to use the REST API?</title>
      <link>https://community.splunk.com/t5/Security/How-do-I-authorize-a-user-to-use-the-REST-API/m-p/228323#M6480</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;when i search index=_internal &lt;/P&gt;

&lt;P&gt;It seems that I have no ldap authorization...&lt;BR /&gt;
But it is not an ldap user...&lt;/P&gt;

&lt;P&gt;And I have an another user with the same configuration and it works with api rest.&lt;/P&gt;</description>
      <pubDate>Tue, 17 Nov 2015 14:24:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/How-do-I-authorize-a-user-to-use-the-REST-API/m-p/228323#M6480</guid>
      <dc:creator>jbechchar</dc:creator>
      <dc:date>2015-11-17T14:24:20Z</dc:date>
    </item>
  </channel>
</rss>

