This commit is contained in:
sandhose
2025-02-20 18:42:01 +00:00
parent 76f753ab61
commit b546fcff29
4 changed files with 34 additions and 2 deletions

View File

@@ -575,6 +575,22 @@ is set to <code>true</code>:</p>
<li>Remove from monthly active users</li>
<li>Remove user's consent information (consent version and timestamp)</li>
</ul>
<h2 id="suspendunsuspend-account"><a class="header" href="#suspendunsuspend-account">Suspend/Unsuspend Account</a></h2>
<p>This API allows an admin to suspend/unsuspend an account. While an account is suspended, the user is
prohibited from sending invites, joining or knocking on rooms, sending messages, changing profile data, and redacting messages other than their own. </p>
<p>The api is:</p>
<pre><code>PUT /_synapse/admin/v1/suspend/&lt;user_id&gt;
</code></pre>
<p>with a body of:</p>
<pre><code class="language-json">{
&quot;suspend&quot;: true
}
</code></pre>
<p>To unsuspend a user, use the same endpoint with a body of:</p>
<pre><code class="language-json">{
&quot;suspend&quot;: false
}
</code></pre>
<h2 id="reset-password"><a class="header" href="#reset-password">Reset password</a></h2>
<p><strong>Note:</strong> This API is disabled when MSC3861 is enabled. <a href="https://github.com/matrix-org/synapse/pull/15582">See #15582</a></p>
<p>Changes the password of another user. This will automatically log the user out of all their devices.</p>

View File

@@ -15111,6 +15111,22 @@ is set to <code>true</code>:</p>
<li>Remove from monthly active users</li>
<li>Remove user's consent information (consent version and timestamp)</li>
</ul>
<h2 id="suspendunsuspend-account"><a class="header" href="#suspendunsuspend-account">Suspend/Unsuspend Account</a></h2>
<p>This API allows an admin to suspend/unsuspend an account. While an account is suspended, the user is
prohibited from sending invites, joining or knocking on rooms, sending messages, changing profile data, and redacting messages other than their own. </p>
<p>The api is:</p>
<pre><code>PUT /_synapse/admin/v1/suspend/&lt;user_id&gt;
</code></pre>
<p>with a body of:</p>
<pre><code class="language-json">{
&quot;suspend&quot;: true
}
</code></pre>
<p>To unsuspend a user, use the same endpoint with a body of:</p>
<pre><code class="language-json">{
&quot;suspend&quot;: false
}
</code></pre>
<h2 id="reset-password"><a class="header" href="#reset-password">Reset password</a></h2>
<p><strong>Note:</strong> This API is disabled when MSC3861 is enabled. <a href="https://github.com/matrix-org/synapse/pull/15582">See #15582</a></p>
<p>Changes the password of another user. This will automatically log the user out of all their devices.</p>

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long