<?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: What is the REST API Post command to append existing native user's role? in Security</title>
    <link>https://community.splunk.com/t5/Security/What-is-the-REST-API-Post-command-to-append-existing-native-user/m-p/458153#M10681</link>
    <description>&lt;P&gt;AFAIK, there is no append option in that. I believe what you could do is to use the GET request for same endpoint to get currently assigned role and then pass that as one of the &lt;CODE&gt;-d roles=...&lt;/CODE&gt; parameter (assuming you're doing it programmatically).&lt;/P&gt;</description>
    <pubDate>Mon, 13 May 2019 14:03:22 GMT</pubDate>
    <dc:creator>somesoni2</dc:creator>
    <dc:date>2019-05-13T14:03:22Z</dc:date>
    <item>
      <title>What is the REST API Post command to append existing native user's role?</title>
      <link>https://community.splunk.com/t5/Security/What-is-the-REST-API-Post-command-to-append-existing-native-user/m-p/458152#M10680</link>
      <description>&lt;P&gt;Hi all,&lt;BR /&gt;
Is there any REST API command to add/append single or multiple roles to specific user.&lt;/P&gt;

&lt;P&gt;For e.g. user "SplunkUser" is already present in Splunk with role assigned to it as "role1".&lt;/P&gt;

&lt;P&gt;Which REST API command should be run to add roles "role2" and "role3" to User "SplunkUser".&lt;/P&gt;

&lt;P&gt;Following command I been running, but it replaces the existing role with new roles and not appending it.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;curl -k -u username:password     &amp;lt;hostdetails&amp;gt;/services/authentication/users/SplunkUser -d roles="role2" -d roles="role3"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Please help..!!!&lt;/P&gt;</description>
      <pubDate>Mon, 13 May 2019 13:44:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/What-is-the-REST-API-Post-command-to-append-existing-native-user/m-p/458152#M10680</guid>
      <dc:creator>harshal_chakran</dc:creator>
      <dc:date>2019-05-13T13:44:42Z</dc:date>
    </item>
    <item>
      <title>Re: What is the REST API Post command to append existing native user's role?</title>
      <link>https://community.splunk.com/t5/Security/What-is-the-REST-API-Post-command-to-append-existing-native-user/m-p/458153#M10681</link>
      <description>&lt;P&gt;AFAIK, there is no append option in that. I believe what you could do is to use the GET request for same endpoint to get currently assigned role and then pass that as one of the &lt;CODE&gt;-d roles=...&lt;/CODE&gt; parameter (assuming you're doing it programmatically).&lt;/P&gt;</description>
      <pubDate>Mon, 13 May 2019 14:03:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/What-is-the-REST-API-Post-command-to-append-existing-native-user/m-p/458153#M10681</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2019-05-13T14:03:22Z</dc:date>
    </item>
    <item>
      <title>Re: What is the REST API Post command to append existing native user's role?</title>
      <link>https://community.splunk.com/t5/Security/What-is-the-REST-API-Post-command-to-append-existing-native-user/m-p/458154#M10682</link>
      <description>&lt;P&gt;Hi, thanks for replying.&lt;BR /&gt;
Yeah, Didn't find any mentioned in Splunk Docs on direct rest command for update.&lt;BR /&gt;
Will have to solve this by firing GET command first, then append with new roles via program/script and fire the results in POST command..&lt;BR /&gt;
I wish there was any simpler way.&lt;/P&gt;</description>
      <pubDate>Tue, 14 May 2019 14:27:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/What-is-the-REST-API-Post-command-to-append-existing-native-user/m-p/458154#M10682</guid>
      <dc:creator>harshal_chakran</dc:creator>
      <dc:date>2019-05-14T14:27:46Z</dc:date>
    </item>
    <item>
      <title>Re: What is the REST API Post command to append existing native user's role?</title>
      <link>https://community.splunk.com/t5/Security/What-is-the-REST-API-Post-command-to-append-existing-native-user/m-p/458155#M10683</link>
      <description>&lt;P&gt;Hi @harshal_chakranarayan,&lt;/P&gt;

&lt;P&gt;Have a look at the rest reference sheet for access control configuration :&lt;/P&gt;

&lt;P&gt;&lt;A href="https://docs.splunk.com/Documentation/Splunk/7.2.6/RESTREF/RESTaccess"&gt;https://docs.splunk.com/Documentation/Splunk/7.2.6/RESTREF/RESTaccess&lt;/A&gt; &lt;/P&gt;

&lt;P&gt;I think you're looking for this endpoint specifically : &lt;BR /&gt;
&lt;A href="https://docs.splunk.com/Documentation/Splunk/7.2.6/RESTREF/RESTaccess#admin.2FProxySSO-user-role-map"&gt;https://docs.splunk.com/Documentation/Splunk/7.2.6/RESTREF/RESTaccess#admin.2FProxySSO-user-role-map&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Cheers,&lt;BR /&gt;
David&lt;/P&gt;</description>
      <pubDate>Tue, 14 May 2019 15:48:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/What-is-the-REST-API-Post-command-to-append-existing-native-user/m-p/458155#M10683</guid>
      <dc:creator>DavidHourani</dc:creator>
      <dc:date>2019-05-14T15:48:08Z</dc:date>
    </item>
  </channel>
</rss>

