1
0
This commit is contained in:
babolivier
2021-10-26 09:01:49 +00:00
parent 62f039f844
commit 78a3153e70
4 changed files with 16 additions and 6 deletions

View File

@@ -225,7 +225,8 @@ server admin: <a href="../usage/administration/admin_api">Admin API</a></p>
&quot;auth_provider&quot;: &quot;&lt;provider2&gt;&quot;,
&quot;external_id&quot;: &quot;&lt;user_id_provider_2&gt;&quot;
}
]
],
&quot;user_type&quot;: null
}
</code></pre>
<p>URL parameters:</p>
@@ -264,7 +265,8 @@ specific <code>user_id</code>.</p>
],
&quot;avatar_url&quot;: &quot;&lt;avatar_url&gt;&quot;,
&quot;admin&quot;: false,
&quot;deactivated&quot;: false
&quot;deactivated&quot;: false,
&quot;user_type&quot;: null
}
</code></pre>
<p>To use it, you will need to authenticate by providing an <code>access_token</code> for a
@@ -307,6 +309,9 @@ in homeserver configuration.</li>
unchanged on existing accounts and set to <code>false</code> for new accounts.
A user cannot be erased by deactivating with this API. For details on
deactivating users see <a href="#deactivate-account">Deactivate Account</a>.</li>
<li><code>user_type</code> - string or null, optional. If provided, the user type will be
adjusted. If <code>null</code> given, the user type will be cleared. Other
allowed options are: <code>bot</code> and <code>support</code>.</li>
</ul>
<p>If the user already exists then optional parameters default to the current value.</p>
<p>In order to re-activate an account <code>deactivated</code> must be set to <code>false</code>. If