<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://htyp.org/mw/index.php?action=history&amp;feed=atom&amp;title=software%2FMastodon%2Fadmin%2Fdethrone</id>
	<title>software/Mastodon/admin/dethrone - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://htyp.org/mw/index.php?action=history&amp;feed=atom&amp;title=software%2FMastodon%2Fadmin%2Fdethrone"/>
	<link rel="alternate" type="text/html" href="https://htyp.org/mw/index.php?title=software/Mastodon/admin/dethrone&amp;action=history"/>
	<updated>2026-08-12T18:05:41Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.45.3</generator>
	<entry>
		<id>https://htyp.org/mw/index.php?title=software/Mastodon/admin/dethrone&amp;diff=29170&amp;oldid=prev</id>
		<title>Woozle: Woozle moved page Mastodon/admin/dethrone to software/Mastodon/admin/dethrone: disambiguate from band (eventually)</title>
		<link rel="alternate" type="text/html" href="https://htyp.org/mw/index.php?title=software/Mastodon/admin/dethrone&amp;diff=29170&amp;oldid=prev"/>
		<updated>2025-03-12T19:12:43Z</updated>

		<summary type="html">&lt;p&gt;Woozle moved page &lt;a href=&quot;/Mastodon/admin/dethrone&quot; class=&quot;mw-redirect&quot; title=&quot;Mastodon/admin/dethrone&quot;&gt;Mastodon/admin/dethrone&lt;/a&gt; to &lt;a href=&quot;/software/Mastodon/admin/dethrone&quot; title=&quot;software/Mastodon/admin/dethrone&quot;&gt;software/Mastodon/admin/dethrone&lt;/a&gt;: disambiguate from band (eventually)&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 19:12, 12 March 2025&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-notice&quot; lang=&quot;en&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(No difference)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>Woozle</name></author>
	</entry>
	<entry>
		<id>https://htyp.org/mw/index.php?title=software/Mastodon/admin/dethrone&amp;diff=23646&amp;oldid=prev</id>
		<title>Woozle: a necessary page</title>
		<link rel="alternate" type="text/html" href="https://htyp.org/mw/index.php?title=software/Mastodon/admin/dethrone&amp;diff=23646&amp;oldid=prev"/>
		<updated>2018-01-15T18:53:23Z</updated>

		<summary type="html">&lt;p&gt;a necessary page&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;How to dethrone an admin (i.e. remove their admin privileges):&lt;br /&gt;
==Proper Method==&lt;br /&gt;
As $mastodon_user, run the [[Ruby on Rails|Rails]] console:&lt;br /&gt;
* &amp;lt;code&amp;gt;cd {{arg|mastodon_folder}}&amp;lt;/code&amp;gt;&lt;br /&gt;
* &amp;lt;code&amp;gt;bundle exec rails c&amp;lt;/code&amp;gt;&lt;br /&gt;
* &amp;lt;code&amp;gt;Account.find_local(&amp;#039;{{arg|admin_account_name}}&amp;#039;).user.update(admin: false)&amp;lt;/code&amp;gt;&lt;br /&gt;
I haven&amp;#039;t used this successfully, but am told that it works.&lt;br /&gt;
==Brute Force==&lt;br /&gt;
Execute the following SQL on the applicable Mastodon database:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=sql&amp;gt;SELECT * FROM users WHERE admin;&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
This will get you a list of admins, from which you can get the account_id of the one you want to dethrone. Then execute this:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=sql&amp;gt;UPDATE users SET admin=FALSE WHERE account_id = {id to dethrone}&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
==Links==&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;2017-09-07&amp;#039;&amp;#039;&amp;#039; [https://discourse.joinmastodon.org/t/how-to-revert-a-users-admin-status-solved/566 How to revert a users admin status?]: the proper method is explained, but some important details aren&amp;#039;t included&lt;/div&gt;</summary>
		<author><name>Woozle</name></author>
	</entry>
</feed>