deploy: 6b4cc9f3f6
This commit is contained in:
@@ -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/<user_id>
|
||||
</code></pre>
|
||||
<p>with a body of:</p>
|
||||
<pre><code class="language-json">{
|
||||
"suspend": true
|
||||
}
|
||||
</code></pre>
|
||||
<p>To unsuspend a user, use the same endpoint with a body of:</p>
|
||||
<pre><code class="language-json">{
|
||||
"suspend": 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>
|
||||
|
||||
@@ -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/<user_id>
|
||||
</code></pre>
|
||||
<p>with a body of:</p>
|
||||
<pre><code class="language-json">{
|
||||
"suspend": true
|
||||
}
|
||||
</code></pre>
|
||||
<p>To unsuspend a user, use the same endpoint with a body of:</p>
|
||||
<pre><code class="language-json">{
|
||||
"suspend": 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
Reference in New Issue
Block a user