<?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 How to delete users with realms via REST API in Enterprise Security Credential Management? in Splunk Enterprise Security</title>
    <link>https://community.splunk.com/t5/Splunk-Enterprise-Security/How-to-delete-users-with-realms-via-REST-API-in-Enterprise/m-p/168605#M726</link>
    <description>&lt;P&gt;Hi Splunkers &amp;amp; Splunkettes,&lt;/P&gt;

&lt;P&gt;So when attempting to remove a configured user via a REST API call, I don't seem to be able to specify a unique user by realm. For example, If I configure two users:&lt;/P&gt;

&lt;P&gt;username: svc_splunk&lt;/P&gt;

&lt;P&gt;realm: &lt;EM&gt;blank&lt;/EM&gt;&lt;/P&gt;

&lt;P&gt;&lt;EM&gt;and&lt;/EM&gt; &lt;/P&gt;

&lt;P&gt;username: svc_splunk&lt;/P&gt;

&lt;P&gt;realm: SA-ThreatIntelligence&lt;/P&gt;

&lt;P&gt;Issuing the following command will remove the first one:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;curl -k -u admin:pass --request DELETE \
    &lt;A href="https://localhost:8089/servicesNS/nobody/search/storage/passwords/:svc_splunk:" target="test_blank"&gt;https://localhost:8089/servicesNS/nobody/search/storage/passwords/:svc_splunk:&lt;/A&gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;``However, when running it again, I am advised that the user doesn't exist (despite the fact it's present on the Credential Manager page).&lt;/P&gt;

&lt;P&gt;From the docs (&lt;A href="http://docs.splunk.com/Documentation/Splunk/6.1.4/RESTAPI/RESTaccess#DELETE_storage.2Fpasswords.2F.7Bname.7D"&gt;LINK&lt;/A&gt;) there appears to be no way to specify the realm, hence no way to delete the user.&lt;/P&gt;

&lt;P&gt;Is there something undocumented that I'm missing?&lt;/P&gt;

&lt;P&gt;PS. The current method of changing &amp;amp; deleting users once added is &lt;STRONG&gt;&lt;EM&gt;horrible&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 16 Oct 2014 01:24:30 GMT</pubDate>
    <dc:creator>rturk</dc:creator>
    <dc:date>2014-10-16T01:24:30Z</dc:date>
    <item>
      <title>How to delete users with realms via REST API in Enterprise Security Credential Management?</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise-Security/How-to-delete-users-with-realms-via-REST-API-in-Enterprise/m-p/168605#M726</link>
      <description>&lt;P&gt;Hi Splunkers &amp;amp; Splunkettes,&lt;/P&gt;

&lt;P&gt;So when attempting to remove a configured user via a REST API call, I don't seem to be able to specify a unique user by realm. For example, If I configure two users:&lt;/P&gt;

&lt;P&gt;username: svc_splunk&lt;/P&gt;

&lt;P&gt;realm: &lt;EM&gt;blank&lt;/EM&gt;&lt;/P&gt;

&lt;P&gt;&lt;EM&gt;and&lt;/EM&gt; &lt;/P&gt;

&lt;P&gt;username: svc_splunk&lt;/P&gt;

&lt;P&gt;realm: SA-ThreatIntelligence&lt;/P&gt;

&lt;P&gt;Issuing the following command will remove the first one:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;curl -k -u admin:pass --request DELETE \
    &lt;A href="https://localhost:8089/servicesNS/nobody/search/storage/passwords/:svc_splunk:" target="test_blank"&gt;https://localhost:8089/servicesNS/nobody/search/storage/passwords/:svc_splunk:&lt;/A&gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;``However, when running it again, I am advised that the user doesn't exist (despite the fact it's present on the Credential Manager page).&lt;/P&gt;

&lt;P&gt;From the docs (&lt;A href="http://docs.splunk.com/Documentation/Splunk/6.1.4/RESTAPI/RESTaccess#DELETE_storage.2Fpasswords.2F.7Bname.7D"&gt;LINK&lt;/A&gt;) there appears to be no way to specify the realm, hence no way to delete the user.&lt;/P&gt;

&lt;P&gt;Is there something undocumented that I'm missing?&lt;/P&gt;

&lt;P&gt;PS. The current method of changing &amp;amp; deleting users once added is &lt;STRONG&gt;&lt;EM&gt;horrible&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 16 Oct 2014 01:24:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise-Security/How-to-delete-users-with-realms-via-REST-API-in-Enterprise/m-p/168605#M726</guid>
      <dc:creator>rturk</dc:creator>
      <dc:date>2014-10-16T01:24:30Z</dc:date>
    </item>
    <item>
      <title>Re: How to delete users with realms via REST API in Enterprise Security Credential Management?</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise-Security/How-to-delete-users-with-realms-via-REST-API-in-Enterprise/m-p/168606#M727</link>
      <description>&lt;PRE&gt;&lt;CODE&gt;curl -k -u admin:changeme --request DELETE &lt;A href="https://localhost:8089/servicesNS/nobody/search/storage/passwords/realm:username:" target="test_blank"&gt;https://localhost:8089/servicesNS/nobody/search/storage/passwords/realm:username:&lt;/A&gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;For example, the user 'simon' in realm 'work' would be&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;curl -k -u admin:changeme --request DELETE &lt;A href="https://localhost:8089/servicesNS/nobody/search/storage/passwords/work:simon:" target="test_blank"&gt;https://localhost:8089/servicesNS/nobody/search/storage/passwords/work:simon:&lt;/A&gt;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 12 Aug 2015 04:03:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise-Security/How-to-delete-users-with-realms-via-REST-API-in-Enterprise/m-p/168606#M727</guid>
      <dc:creator>sduff_splunk</dc:creator>
      <dc:date>2015-08-12T04:03:53Z</dc:date>
    </item>
  </channel>
</rss>

