This commit is contained in:
richvdh 2021-08-17 10:56:34 +00:00
parent 42e3f6b862
commit b6e62fe9db
4 changed files with 78 additions and 42 deletions

View file

@ -248,6 +248,16 @@ specific <code>user_id</code>.</p>
&quot;address&quot;: &quot;&lt;user_mail_2&gt;&quot; &quot;address&quot;: &quot;&lt;user_mail_2&gt;&quot;
} }
], ],
&quot;external_ids&quot;: [
{
&quot;auth_provider&quot;: &quot;&lt;provider1&gt;&quot;,
&quot;external_id&quot;: &quot;&lt;user_id_provider_1&gt;&quot;
},
{
&quot;auth_provider&quot;: &quot;&lt;provider2&gt;&quot;,
&quot;external_id&quot;: &quot;&lt;user_id_provider_2&gt;&quot;
}
],
&quot;avatar_url&quot;: &quot;&lt;avatar_url&gt;&quot;, &quot;avatar_url&quot;: &quot;&lt;avatar_url&gt;&quot;,
&quot;admin&quot;: false, &quot;admin&quot;: false,
&quot;deactivated&quot;: false &quot;deactivated&quot;: false
@ -255,36 +265,44 @@ specific <code>user_id</code>.</p>
</code></pre> </code></pre>
<p>To use it, you will need to authenticate by providing an <code>access_token</code> for a <p>To use it, you will need to authenticate by providing an <code>access_token</code> for a
server admin: <a href="../usage/administration/admin_api">Admin API</a></p> server admin: <a href="../usage/administration/admin_api">Admin API</a></p>
<p>Returns HTTP status code:</p>
<ul>
<li><code>201</code> - When a new user object was created.</li>
<li><code>200</code> - When a user was modified.</li>
</ul>
<p>URL parameters:</p> <p>URL parameters:</p>
<ul> <ul>
<li><code>user_id</code>: fully-qualified user id: for example, <code>@user:server.com</code>.</li> <li><code>user_id</code>: fully-qualified user id: for example, <code>@user:server.com</code>.</li>
</ul> </ul>
<p>Body parameters:</p> <p>Body parameters:</p>
<ul> <ul>
<li> <li><code>password</code> - string, optional. If provided, the user's password is updated and all
<p><code>password</code>, optional. If provided, the user's password is updated and all devices are logged out.</li>
devices are logged out.</p> <li><code>displayname</code> - string, optional, defaults to the value of <code>user_id</code>.</li>
<li><code>threepids</code> - array, optional, allows setting the third-party IDs (email, msisdn)
<ul>
<li><code>medium</code> - string. Kind of third-party ID, either <code>email</code> or <code>msisdn</code>.</li>
<li><code>address</code> - string. Value of third-party ID.
belonging to a user.</li>
</ul>
</li> </li>
<li> <li><code>external_ids</code> - array, optional. Allow setting the identifier of the external identity
<p><code>displayname</code>, optional, defaults to the value of <code>user_id</code>.</p> provider for SSO (Single sign-on). Details in
<a href="../usage/configuration/homeserver_sample_config.html">Sample Configuration File</a>
section <code>sso</code> and <code>oidc_providers</code>.
<ul>
<li><code>auth_provider</code> - string. ID of the external identity provider. Value of <code>idp_id</code>
in homeserver configuration.</li>
<li><code>external_id</code> - string, user ID in the external identity provider.</li>
</ul>
</li> </li>
<li> <li><code>avatar_url</code> - string, optional, must be a
<p><code>threepids</code>, optional, allows setting the third-party IDs (email, msisdn) <a href="https://matrix.org/docs/spec/client_server/r0.6.0#matrix-content-mxc-uris">MXC URI</a>.</li>
belonging to a user.</p> <li><code>admin</code> - bool, optional, defaults to <code>false</code>.</li>
</li> <li><code>deactivated</code> - bool, optional. If unspecified, deactivation state will be left
<li>
<p><code>avatar_url</code>, optional, must be a
<a href="https://matrix.org/docs/spec/client_server/r0.6.0#matrix-content-mxc-uris">MXC URI</a>.</p>
</li>
<li>
<p><code>admin</code>, optional, defaults to <code>false</code>.</p>
</li>
<li>
<p><code>deactivated</code>, optional. If unspecified, deactivation state will be left
unchanged on existing accounts and set to <code>false</code> for new accounts. 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 A user cannot be erased by deactivating with this API. For details on
deactivating users see <a href="#deactivate-account">Deactivate Account</a>.</p> deactivating users see <a href="#deactivate-account">Deactivate Account</a>.</li>
</li>
</ul> </ul>
<p>If the user already exists then optional parameters default to the current value.</p> <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 <p>In order to re-activate an account <code>deactivated</code> must be set to <code>false</code>. If

View file

@ -9969,6 +9969,16 @@ specific <code>user_id</code>.</p>
&quot;address&quot;: &quot;&lt;user_mail_2&gt;&quot; &quot;address&quot;: &quot;&lt;user_mail_2&gt;&quot;
} }
], ],
&quot;external_ids&quot;: [
{
&quot;auth_provider&quot;: &quot;&lt;provider1&gt;&quot;,
&quot;external_id&quot;: &quot;&lt;user_id_provider_1&gt;&quot;
},
{
&quot;auth_provider&quot;: &quot;&lt;provider2&gt;&quot;,
&quot;external_id&quot;: &quot;&lt;user_id_provider_2&gt;&quot;
}
],
&quot;avatar_url&quot;: &quot;&lt;avatar_url&gt;&quot;, &quot;avatar_url&quot;: &quot;&lt;avatar_url&gt;&quot;,
&quot;admin&quot;: false, &quot;admin&quot;: false,
&quot;deactivated&quot;: false &quot;deactivated&quot;: false
@ -9976,36 +9986,44 @@ specific <code>user_id</code>.</p>
</code></pre> </code></pre>
<p>To use it, you will need to authenticate by providing an <code>access_token</code> for a <p>To use it, you will need to authenticate by providing an <code>access_token</code> for a
server admin: <a href="admin_api/../usage/administration/admin_api">Admin API</a></p> server admin: <a href="admin_api/../usage/administration/admin_api">Admin API</a></p>
<p>Returns HTTP status code:</p>
<ul>
<li><code>201</code> - When a new user object was created.</li>
<li><code>200</code> - When a user was modified.</li>
</ul>
<p>URL parameters:</p> <p>URL parameters:</p>
<ul> <ul>
<li><code>user_id</code>: fully-qualified user id: for example, <code>@user:server.com</code>.</li> <li><code>user_id</code>: fully-qualified user id: for example, <code>@user:server.com</code>.</li>
</ul> </ul>
<p>Body parameters:</p> <p>Body parameters:</p>
<ul> <ul>
<li> <li><code>password</code> - string, optional. If provided, the user's password is updated and all
<p><code>password</code>, optional. If provided, the user's password is updated and all devices are logged out.</li>
devices are logged out.</p> <li><code>displayname</code> - string, optional, defaults to the value of <code>user_id</code>.</li>
<li><code>threepids</code> - array, optional, allows setting the third-party IDs (email, msisdn)
<ul>
<li><code>medium</code> - string. Kind of third-party ID, either <code>email</code> or <code>msisdn</code>.</li>
<li><code>address</code> - string. Value of third-party ID.
belonging to a user.</li>
</ul>
</li> </li>
<li> <li><code>external_ids</code> - array, optional. Allow setting the identifier of the external identity
<p><code>displayname</code>, optional, defaults to the value of <code>user_id</code>.</p> provider for SSO (Single sign-on). Details in
<a href="admin_api/../usage/configuration/homeserver_sample_config.html">Sample Configuration File</a>
section <code>sso</code> and <code>oidc_providers</code>.
<ul>
<li><code>auth_provider</code> - string. ID of the external identity provider. Value of <code>idp_id</code>
in homeserver configuration.</li>
<li><code>external_id</code> - string, user ID in the external identity provider.</li>
</ul>
</li> </li>
<li> <li><code>avatar_url</code> - string, optional, must be a
<p><code>threepids</code>, optional, allows setting the third-party IDs (email, msisdn) <a href="https://matrix.org/docs/spec/client_server/r0.6.0#matrix-content-mxc-uris">MXC URI</a>.</li>
belonging to a user.</p> <li><code>admin</code> - bool, optional, defaults to <code>false</code>.</li>
</li> <li><code>deactivated</code> - bool, optional. If unspecified, deactivation state will be left
<li>
<p><code>avatar_url</code>, optional, must be a
<a href="https://matrix.org/docs/spec/client_server/r0.6.0#matrix-content-mxc-uris">MXC URI</a>.</p>
</li>
<li>
<p><code>admin</code>, optional, defaults to <code>false</code>.</p>
</li>
<li>
<p><code>deactivated</code>, optional. If unspecified, deactivation state will be left
unchanged on existing accounts and set to <code>false</code> for new accounts. 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 A user cannot be erased by deactivating with this API. For details on
deactivating users see <a href="admin_api/user_admin_api.html#deactivate-account">Deactivate Account</a>.</p> deactivating users see <a href="admin_api/user_admin_api.html#deactivate-account">Deactivate Account</a>.</li>
</li>
</ul> </ul>
<p>If the user already exists then optional parameters default to the current value.</p> <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 <p>In order to re-activate an account <code>deactivated</code> must be set to <code>false</code>. If

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long