summary refs log tree commit diff
path: root/latest/admin_api/user_admin_api.html
diff options
context:
space:
mode:
authorDMRobertson <DMRobertson@users.noreply.github.com>2022-09-27 12:50:14 +0000
committerDMRobertson <DMRobertson@users.noreply.github.com>2022-09-27 12:50:14 +0000
commit6d4ab8fb90ae2eaa3393dcbd37c83c486202b347 (patch)
tree0dc6602f695749e165fc89bcefeb45437271292b /latest/admin_api/user_admin_api.html
parentdeploy: 3853011d01ad3f5034f53a9dfb7a06e36cf70ae9 (diff)
downloadsynapse-6d4ab8fb90ae2eaa3393dcbd37c83c486202b347.tar.xz
deploy: 3853011d01ad3f5034f53a9dfb7a06e36cf70ae9
Diffstat (limited to 'latest/admin_api/user_admin_api.html')
-rw-r--r--latest/admin_api/user_admin_api.html26
1 files changed, 26 insertions, 0 deletions
diff --git a/latest/admin_api/user_admin_api.html b/latest/admin_api/user_admin_api.html

index adeefc21dc..108ce7bd62 100644 --- a/latest/admin_api/user_admin_api.html +++ b/latest/admin_api/user_admin_api.html
@@ -181,6 +181,7 @@ for a server admin: see <a href="../usage/administration/admin_api">Admin API</a &quot;appservice_id&quot;: null, &quot;consent_server_notice_sent&quot;: null, &quot;consent_version&quot;: null, + &quot;consent_ts&quot;: null, &quot;external_ids&quot;: [ { &quot;auth_provider&quot;: &quot;&lt;provider1&gt;&quot;, @@ -488,6 +489,7 @@ is set to <code>true</code>:</p> <li>Remove the user's creation (registration) timestamp</li> <li><a href="#override-ratelimiting-for-users">Remove rate limit overrides</a></li> <li>Remove from monthly active users</li> +<li>Remove user's consent information (consent version and timestamp)</li> </ul> <h2 id="reset-password"><a class="header" href="#reset-password">Reset password</a></h2> <p>Changes the password of another user. This will automatically log the user out of all their devices.</p> @@ -1136,6 +1138,30 @@ for more information.</p> </code></pre> <p>The request and response format is the same as the <a href="https://matrix.org/docs/spec/client_server/r0.6.0#get-matrix-client-r0-register-available">/_matrix/client/r0/register/available</a> API.</p> +<h3 id="find-a-user-based-on-their-id-in-an-auth-provider"><a class="header" href="#find-a-user-based-on-their-id-in-an-auth-provider">Find a user based on their ID in an auth provider</a></h3> +<p>The API is:</p> +<pre><code>GET /_synapse/admin/v1/auth_providers/$provider/users/$external_id +</code></pre> +<p>When a user matched the given ID for the given provider, an HTTP code <code>200</code> with a response body like the following is returned:</p> +<pre><code class="language-json">{ + &quot;user_id&quot;: &quot;@hello:example.org&quot; +} +</code></pre> +<p><strong>Parameters</strong></p> +<p>The following parameters should be set in the URL:</p> +<ul> +<li><code>provider</code> - The ID of the authentication provider, as advertised by the <a href="https://spec.matrix.org/latest/client-server-api/#post_matrixclientv3login"><code>GET /_matrix/client/v3/login</code></a> API in the <code>m.login.sso</code> authentication method.</li> +<li><code>external_id</code> - The user ID from the authentication provider. Usually corresponds to the <code>sub</code> claim for OIDC providers, or to the <code>uid</code> attestation for SAML2 providers.</li> +</ul> +<p>The <code>external_id</code> may have characters that are not URL-safe (typically <code>/</code>, <code>:</code> or <code>@</code>), so it is advised to URL-encode those parameters.</p> +<p><strong>Errors</strong></p> +<p>Returns a <code>404</code> HTTP status code if no user was found, with a response body like this:</p> +<pre><code class="language-json">{ + &quot;errcode&quot;:&quot;M_NOT_FOUND&quot;, + &quot;error&quot;:&quot;User not found&quot; +} +</code></pre> +<p><em>Added in Synapse 1.68.0.</em></p> </main>