<?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 add a new role via REST API? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-do-I-add-a-new-role-via-REST-API/m-p/407783#M72315</link>
    <description>&lt;P&gt;Have you looked at this? (see the example on POST request)&lt;/P&gt;

&lt;P&gt;&lt;A href="https://docs.splunk.com/Documentation/Splunk/7.2.4/RESTREF/RESTaccess#authorization.2Froles"&gt;https://docs.splunk.com/Documentation/Splunk/7.2.4/RESTREF/RESTaccess#authorization.2Froles&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 25 Feb 2019 20:55:15 GMT</pubDate>
    <dc:creator>somesoni2</dc:creator>
    <dc:date>2019-02-25T20:55:15Z</dc:date>
    <item>
      <title>How do I add a new role via REST API?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-do-I-add-a-new-role-via-REST-API/m-p/407782#M72314</link>
      <description>&lt;P&gt;Hi, &lt;/P&gt;

&lt;P&gt;How could I add a new role via REST API ?&lt;/P&gt;

&lt;P&gt;When I try to send the following HTTP POST via Postman:&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;URL&lt;/STRONG&gt;: &lt;CODE&gt;&lt;A href="https://localhost:8089/services/authorization/roles?name=newrole" target="test_blank"&gt;https://localhost:8089/services/authorization/roles?name=newrole&lt;/A&gt;&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;Method&lt;/STRONG&gt;: POST&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;Authorization&lt;/STRONG&gt;: Basic -credentials-, where -credentials- is&lt;BR /&gt;
the base64 encoding of ID and password joined by a colon.&lt;/P&gt;

&lt;P&gt;I got: Cannot perform action "POST" without a target name to act on.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;?xml version="1.0" encoding="UTF-8"?&amp;gt;
&amp;lt;response&amp;gt;
    &amp;lt;messages&amp;gt;
        &amp;lt;msg type="ERROR"&amp;gt;Cannot perform action "POST" without a target name to act on.&amp;lt;/msg&amp;gt;
    &amp;lt;/messages&amp;gt;
&amp;lt;/response&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;What does target name refer to? And how could I set the value in order to get the HTTP POST request to work ?&lt;/P&gt;</description>
      <pubDate>Mon, 25 Feb 2019 20:15:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-do-I-add-a-new-role-via-REST-API/m-p/407782#M72314</guid>
      <dc:creator>davidtrujillo</dc:creator>
      <dc:date>2019-02-25T20:15:46Z</dc:date>
    </item>
    <item>
      <title>Re: How do I add a new role via REST API?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-do-I-add-a-new-role-via-REST-API/m-p/407783#M72315</link>
      <description>&lt;P&gt;Have you looked at this? (see the example on POST request)&lt;/P&gt;

&lt;P&gt;&lt;A href="https://docs.splunk.com/Documentation/Splunk/7.2.4/RESTREF/RESTaccess#authorization.2Froles"&gt;https://docs.splunk.com/Documentation/Splunk/7.2.4/RESTREF/RESTaccess#authorization.2Froles&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 25 Feb 2019 20:55:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-do-I-add-a-new-role-via-REST-API/m-p/407783#M72315</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2019-02-25T20:55:15Z</dc:date>
    </item>
    <item>
      <title>Re: How do I add a new role via REST API?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-do-I-add-a-new-role-via-REST-API/m-p/595023#M103950</link>
      <description>&lt;P&gt;For anyone facing this issue and still looking for an answer, you need to use url encoded parameters to be passed to the request. The request was successful only after this change was made.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="harishmeetsu_0-1650711156316.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/19260i9A11F834D86F1822/image-size/medium?v=v2&amp;amp;px=400" role="button" title="harishmeetsu_0-1650711156316.png" alt="harishmeetsu_0-1650711156316.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 23 Apr 2022 10:53:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-do-I-add-a-new-role-via-REST-API/m-p/595023#M103950</guid>
      <dc:creator>harishmeetsu</dc:creator>
      <dc:date>2022-04-23T10:53:12Z</dc:date>
    </item>
    <item>
      <title>Re: How do I add a new role via REST API?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-do-I-add-a-new-role-via-REST-API/m-p/595102#M103957</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/86872"&gt;@davidtrujillo&lt;/a&gt;&amp;nbsp;- Can you please confirm that this resolves your issue?&lt;/P&gt;&lt;P&gt;If so can you please also accept the answer as solution by clicking on "Accept as Solution" button.&lt;/P&gt;</description>
      <pubDate>Mon, 25 Apr 2022 05:46:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-do-I-add-a-new-role-via-REST-API/m-p/595102#M103957</guid>
      <dc:creator>VatsalJagani</dc:creator>
      <dc:date>2022-04-25T05:46:41Z</dc:date>
    </item>
  </channel>
</rss>

