<?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>question Re: How to delete Ambari User by using the Ambari API in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-delete-Ambari-User-by-using-the-Ambari-API/m-p/185146#M58815</link>
    <description>&lt;P&gt;Then i have no clue how to make this whole thread "Answered or Accepted". The only thing i got here is a wee gear in the right upper corner and there is just "report". Your answer i can only "share" or "Reward user",&lt;/P&gt;&lt;P&gt;not accept or answered. Can you point me to the Field, Link or whatever i need to click?&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Normen&lt;/P&gt;</description>
    <pubDate>Mon, 03 Apr 2017 20:33:08 GMT</pubDate>
    <dc:creator>normen_zoch</dc:creator>
    <dc:date>2017-04-03T20:33:08Z</dc:date>
    <item>
      <title>How to delete Ambari User by using the Ambari API</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-delete-Ambari-User-by-using-the-Ambari-API/m-p/185141#M58810</link>
      <description>&lt;P&gt;Hello Guys,&lt;/P&gt;&lt;P&gt;For automatization processes, i want to remove/delete an existing Ambari User using the Ambari API&lt;/P&gt;&lt;P&gt;The Following command creates just the Error Message: 405 not allowed&lt;/P&gt;&lt;PRE&gt;+ curl -ik -admin:admin -H 'X-Requested-By: ambari' -X DELETE -d '{"Users/user_name":"user1"}' &lt;A href="https://node0.mynet:8443/api/v1/users" target="_blank"&gt;https://node0.mynet:8443/api/v1/users&lt;/A&gt;
HTTP/1.1 405 Method Not Allowed
Strict-Transport-Security: max-age=31536000
X-Frame-Options: DENY
X-XSS-Protection: 1; mode=block
Set-Cookie: AMBARISESSIONID=390k4yb9us9z1f2elr2vq8kxg;Path=/;Secure;HttpOnly
Expires: Thu, 01 Jan 1970 00:00:00 GMT
User: admin
Allow: HEAD,POST,GET,OPTIONS
Content-Length: 0
Server: Jetty(8.1.19.v20160209)

&lt;/PRE&gt;&lt;P&gt;How can i archive that? &lt;/P&gt;&lt;P&gt;At some Point, while experimenting, i was asked for the password of the user i want to delete, but that sounds unclever.&lt;/P&gt;&lt;P&gt;I am the Admin,i cannot be asked for the users Password. Especially in the use case, where the user left the project or company earlier.&lt;/P&gt;&lt;P&gt;Any Ideas?&lt;/P&gt;&lt;P&gt;best Regards,&lt;/P&gt;&lt;P&gt;Normen&lt;/P&gt;</description>
      <pubDate>Mon, 03 Apr 2017 15:19:45 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-delete-Ambari-User-by-using-the-Ambari-API/m-p/185141#M58810</guid>
      <dc:creator>normen_zoch</dc:creator>
      <dc:date>2017-04-03T15:19:45Z</dc:date>
    </item>
    <item>
      <title>Re: How to delete Ambari User by using the Ambari API</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-delete-Ambari-User-by-using-the-Ambari-API/m-p/185142#M58811</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/13855/normenzoch.html" nodeid="13855"&gt;@Normen Zoch&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Try this for deleting "&lt;STRONG&gt;user1&lt;/STRONG&gt;"&lt;/P&gt;&lt;PRE&gt;curl -ik -u admin:admin -H 'X-Requested-By: ambari' -X DELETE  &lt;A href="https://node0.mynet:8443/api/v1/users/user1" target="_blank"&gt;https://node0.mynet:8443/api/v1/users/user1&lt;/A&gt;&lt;/PRE&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;You were trying to pass a  data &lt;STRONG&gt; "-d '{"Users/user_name":"user1"}'"&lt;/STRONG&gt; which is a post data ... that is not right combination with DELETE request for the uri &lt;STRONG&gt;"/api/v1/users/"&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;For adding new users or adding privileges please refer to &lt;/P&gt;&lt;P&gt;&lt;A href="https://cwiki.apache.org/confluence/pages/viewpage.action?pageId=55152242" target="_blank"&gt;https://cwiki.apache.org/confluence/pages/viewpage.action?pageId=55152242&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.hortonworks.com/questions/50073/adding-new-ambari-user-with-assigned-group-with-ap.html" target="_blank"&gt;https://community.hortonworks.com/questions/50073/adding-new-ambari-user-with-assigned-group-with-ap.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 03 Apr 2017 15:25:46 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-delete-Ambari-User-by-using-the-Ambari-API/m-p/185142#M58811</guid>
      <dc:creator>jsensharma</dc:creator>
      <dc:date>2017-04-03T15:25:46Z</dc:date>
    </item>
    <item>
      <title>Re: How to delete Ambari User by using the Ambari API</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-delete-Ambari-User-by-using-the-Ambari-API/m-p/185143#M58812</link>
      <description>&lt;P&gt;Jay, works like a charm. Thanks very much!&lt;/P&gt;</description>
      <pubDate>Mon, 03 Apr 2017 19:12:31 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-delete-Ambari-User-by-using-the-Ambari-API/m-p/185143#M58812</guid>
      <dc:creator>normen_zoch</dc:creator>
      <dc:date>2017-04-03T19:12:31Z</dc:date>
    </item>
    <item>
      <title>Re: How to delete Ambari User by using the Ambari API</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-delete-Ambari-User-by-using-the-Ambari-API/m-p/185144#M58813</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/13855/normenzoch.html" nodeid="13855"&gt;@Normen Zoch
&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Great to hear that the issue is resolved. It will be good if you can mark this HCC thread as Answered (Accepted) so that it will be useful for others as well.
&lt;A rel="user" href="https://community.cloudera.com/users/13855/normenzoch.html" nodeid="13855"&gt;&lt;/A&gt; &lt;/P&gt;</description>
      <pubDate>Mon, 03 Apr 2017 20:17:41 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-delete-Ambari-User-by-using-the-Ambari-API/m-p/185144#M58813</guid>
      <dc:creator>jsensharma</dc:creator>
      <dc:date>2017-04-03T20:17:41Z</dc:date>
    </item>
    <item>
      <title>Re: How to delete Ambari User by using the Ambari API</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-delete-Ambari-User-by-using-the-Ambari-API/m-p/185145#M58814</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/13855/normenzoch.html" nodeid="13855"&gt;@Normen Zoch
&lt;/A&gt;&lt;/P&gt;&lt;P&gt;You accepted an update which is not an answer.  But just a confirmation that the issue got resolved :(
&lt;A rel="user" href="https://community.cloudera.com/users/13855/normenzoch.html" nodeid="13855"&gt;&lt;/A&gt; &lt;/P&gt;</description>
      <pubDate>Mon, 03 Apr 2017 20:25:50 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-delete-Ambari-User-by-using-the-Ambari-API/m-p/185145#M58814</guid>
      <dc:creator>jsensharma</dc:creator>
      <dc:date>2017-04-03T20:25:50Z</dc:date>
    </item>
    <item>
      <title>Re: How to delete Ambari User by using the Ambari API</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-delete-Ambari-User-by-using-the-Ambari-API/m-p/185146#M58815</link>
      <description>&lt;P&gt;Then i have no clue how to make this whole thread "Answered or Accepted". The only thing i got here is a wee gear in the right upper corner and there is just "report". Your answer i can only "share" or "Reward user",&lt;/P&gt;&lt;P&gt;not accept or answered. Can you point me to the Field, Link or whatever i need to click?&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Normen&lt;/P&gt;</description>
      <pubDate>Mon, 03 Apr 2017 20:33:08 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-delete-Ambari-User-by-using-the-Ambari-API/m-p/185146#M58815</guid>
      <dc:creator>normen_zoch</dc:creator>
      <dc:date>2017-04-03T20:33:08Z</dc:date>
    </item>
    <item>
      <title>Re: How to delete Ambari User by using the Ambari API</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-delete-Ambari-User-by-using-the-Ambari-API/m-p/303981#M58816</link>
      <description>&lt;P&gt;Following KB can be used to delete users/groups in bulk&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.cloudera.com/t5/Community-Articles/Remove-AD-LDAP-accounts-from-Ambari-using-REST-API/tac-p/244196" target="_blank"&gt;https://community.cloudera.com/t5/Community-Articles/Remove-AD-LDAP-accounts-from-Ambari-using-REST-API/tac-p/244196&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 06 Oct 2020 17:46:37 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-delete-Ambari-User-by-using-the-Ambari-API/m-p/303981#M58816</guid>
      <dc:creator>gul_shad</dc:creator>
      <dc:date>2020-10-06T17:46:37Z</dc:date>
    </item>
  </channel>
</rss>

