<?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: Can the REST call to delete a user from Splunk be called from the search command &amp;quot;|rest /services/authenticatio in Security</title>
    <link>https://community.splunk.com/t5/Security/Can-the-REST-call-to-delete-a-user-from-Splunk-be-called-from/m-p/620916#M16464</link>
    <description>&lt;P&gt;Just wondering if you ever got solution to remove saml users once user is disabled or left organization , as you said&amp;nbsp;&lt;SPAN&gt;user is defined and it stays in splunk.&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 15 Nov 2022 15:07:54 GMT</pubDate>
    <dc:creator>pagillar</dc:creator>
    <dc:date>2022-11-15T15:07:54Z</dc:date>
    <item>
      <title>Can the REST call to delete a user from Splunk be called from the search command "|rest /services/authentication/users/"?</title>
      <link>https://community.splunk.com/t5/Security/Can-the-REST-call-to-delete-a-user-from-Splunk-be-called-from/m-p/264088#M7234</link>
      <description>&lt;P&gt;I believe the answer to this is 'no' - but, worth asking to make sure:&lt;/P&gt;

&lt;P&gt;Can the rest call to delete a user from Splunk be called from the search '| rest' command?&lt;/P&gt;

&lt;P&gt;End point is documented here: &lt;A href="http://docs.splunk.com/Documentation/Splunk/6.4.1/RESTREF/RESTaccess#authentication.2Fusers.2F.7Bname.7D"&gt;http://docs.splunk.com/Documentation/Splunk/6.4.1/RESTREF/RESTaccess#authentication.2Fusers.2F.7Bname.7D&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Of course I can get info for the user from the search:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;|rest /services/authentication/users/user1
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;And sure I can delete a user with the command:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;curl -k -u admin:changeme --request DELETE &lt;A href="https://localhost:8089/services/authentication/users/user1" target="test_blank"&gt;https://localhost:8089/services/authentication/users/user1&lt;/A&gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;But - for a user of Splunk Cloud (not having access to the CLI or REST outside of Cloud), can the search &lt;CODE&gt;| rest /services/authentication/users/user1&lt;/CODE&gt; be used in some form to perform the DELETE operation?&lt;/P&gt;</description>
      <pubDate>Mon, 18 Jul 2016 16:52:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/Can-the-REST-call-to-delete-a-user-from-Splunk-be-called-from/m-p/264088#M7234</guid>
      <dc:creator>pgreer_splunk</dc:creator>
      <dc:date>2016-07-18T16:52:53Z</dc:date>
    </item>
    <item>
      <title>Re: Can the REST call to delete a user from Splunk be called from the search command "|rest /services/authentication/users/"?</title>
      <link>https://community.splunk.com/t5/Security/Can-the-REST-call-to-delete-a-user-from-Splunk-be-called-from/m-p/264089#M7235</link>
      <description>&lt;P&gt;You're correct on guessing the answer. No, the rest search command only supports GET calls.&lt;/P&gt;

&lt;P&gt;On the other notes, if you're looking for a way to be able to delete the user from search, have a look at the custom search command. You can create your own search command to call the curl command to delete user.&lt;/P&gt;

&lt;P&gt;&lt;A href="http://docs.splunk.com/Documentation/Splunk/6.4.2/Search/Aboutcustomsearchcommands"&gt;http://docs.splunk.com/Documentation/Splunk/6.4.2/Search/Aboutcustomsearchcommands&lt;/A&gt;&lt;BR /&gt;
&lt;A href="http://dev.splunk.com/view/python-sdk/SP-CAAAEU2"&gt;http://dev.splunk.com/view/python-sdk/SP-CAAAEU2&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 18 Jul 2016 18:01:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/Can-the-REST-call-to-delete-a-user-from-Splunk-be-called-from/m-p/264089#M7235</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2016-07-18T18:01:32Z</dc:date>
    </item>
    <item>
      <title>Re: Can the REST call to delete a user from Splunk be called from the search command "|rest /services/authentication/users/"?</title>
      <link>https://community.splunk.com/t5/Security/Can-the-REST-call-to-delete-a-user-from-Splunk-be-called-from/m-p/264090#M7236</link>
      <description>&lt;P&gt;Thought that was the case. Thanks for confirming!&lt;/P&gt;

&lt;P&gt;Leads me to put into place an enhancement request. For SAML authentication, there is not a way to delete a user once provisioned through a successful SAML interchange. With locally defined users, the admin role can easily remove the user through the UI, with LDAP we support the ability to have LDAP remove the user in Splunk, with SAML - nope. So once the user is defined, if the person leaves the organization they're removed from the IDP - so technically they can't log in, but their user definition sits out in Splunk (indefinitely - or until Splunk Ops/Support performs the remove from the CLI (curl command)).&lt;/P&gt;</description>
      <pubDate>Mon, 18 Jul 2016 21:45:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/Can-the-REST-call-to-delete-a-user-from-Splunk-be-called-from/m-p/264090#M7236</guid>
      <dc:creator>pgreer_splunk</dc:creator>
      <dc:date>2016-07-18T21:45:41Z</dc:date>
    </item>
    <item>
      <title>Re: Can the REST call to delete a user from Splunk be called from the search command "|rest /services/authentication/users/"?</title>
      <link>https://community.splunk.com/t5/Security/Can-the-REST-call-to-delete-a-user-from-Splunk-be-called-from/m-p/264091#M7237</link>
      <description>&lt;P&gt;Maybe this helps?&lt;BR /&gt;
&lt;A href="https://splunkbase.splunk.com/app/2775/"&gt;https://splunkbase.splunk.com/app/2775/&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 03 Aug 2017 14:33:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/Can-the-REST-call-to-delete-a-user-from-Splunk-be-called-from/m-p/264091#M7237</guid>
      <dc:creator>dominiquevocat</dc:creator>
      <dc:date>2017-08-03T14:33:48Z</dc:date>
    </item>
    <item>
      <title>Re: Can the REST call to delete a user from Splunk be called from the search command "|rest /services/authenticatio</title>
      <link>https://community.splunk.com/t5/Security/Can-the-REST-call-to-delete-a-user-from-Splunk-be-called-from/m-p/620916#M16464</link>
      <description>&lt;P&gt;Just wondering if you ever got solution to remove saml users once user is disabled or left organization , as you said&amp;nbsp;&lt;SPAN&gt;user is defined and it stays in splunk.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 15 Nov 2022 15:07:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/Can-the-REST-call-to-delete-a-user-from-Splunk-be-called-from/m-p/620916#M16464</guid>
      <dc:creator>pagillar</dc:creator>
      <dc:date>2022-11-15T15:07:54Z</dc:date>
    </item>
    <item>
      <title>Re: Can the REST call to delete a user from Splunk be called from the search command "|rest /services/authenticatio</title>
      <link>https://community.splunk.com/t5/Security/Can-the-REST-call-to-delete-a-user-from-Splunk-be-called-from/m-p/625181#M16518</link>
      <description>&lt;P&gt;This is to remove a SAML user that has left the organization. Before deleting, reassign any objects, reports, and alerts that user may have.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;curl -k -u &amp;lt;adminaccount&amp;gt;:&amp;lt;password&amp;gt; --request DELETE &lt;A href="https://%3cinstancename%3e.splunkcloud.com:8089/services/admin/SAML-user-role-map/username@domain.com" target="_blank" rel="noopener"&gt;https://&amp;lt;instancename&amp;gt;.splunkcloud.com:8089/services/admin/SAML-user-role-map/username@domain.com&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 23 Dec 2022 13:39:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/Can-the-REST-call-to-delete-a-user-from-Splunk-be-called-from/m-p/625181#M16518</guid>
      <dc:creator>ASierra</dc:creator>
      <dc:date>2022-12-23T13:39:38Z</dc:date>
    </item>
    <item>
      <title>Re: Can the REST call to delete a user from Splunk be called from the search command "|rest /services/authenticatio</title>
      <link>https://community.splunk.com/t5/Security/Can-the-REST-call-to-delete-a-user-from-Splunk-be-called-from/m-p/656329#M17249</link>
      <description>&lt;P&gt;Thanks! This works great unless the SAML role mapping has been deleted.&lt;/P&gt;</description>
      <pubDate>Thu, 31 Aug 2023 20:20:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/Can-the-REST-call-to-delete-a-user-from-Splunk-be-called-from/m-p/656329#M17249</guid>
      <dc:creator>dfronck</dc:creator>
      <dc:date>2023-08-31T20:20:26Z</dc:date>
    </item>
  </channel>
</rss>

