mirror of
https://github.com/element-hq/synapse.git
synced 2025-03-28 18:38:31 +00:00
deploy: eef2b9e344
This commit is contained in:
parent
305124ec0f
commit
ebbe004421
4 changed files with 30 additions and 10 deletions
|
@ -193,7 +193,8 @@ for a server admin: see <a href="../usage/administration/admin_api/">Admin API</
|
|||
"external_id": "<user_id_provider_2>"
|
||||
}
|
||||
],
|
||||
"user_type": null
|
||||
"user_type": null,
|
||||
"locked": false
|
||||
}
|
||||
</code></pre>
|
||||
<p>URL parameters:</p>
|
||||
|
@ -234,7 +235,8 @@ specific <code>user_id</code>.</p>
|
|||
],
|
||||
"admin": false,
|
||||
"deactivated": false,
|
||||
"user_type": null
|
||||
"user_type": null,
|
||||
"locked": false
|
||||
}
|
||||
</code></pre>
|
||||
<p>Returns HTTP status code:</p>
|
||||
|
@ -333,7 +335,8 @@ By default, the response is ordered by ascending user ID.</p>
|
|||
"shadow_banned": 0,
|
||||
"displayname": "<User One>",
|
||||
"avatar_url": null,
|
||||
"creation_ts": 1560432668000
|
||||
"creation_ts": 1560432668000,
|
||||
"locked": false
|
||||
}, {
|
||||
"name": "<user_id2>",
|
||||
"is_guest": 0,
|
||||
|
@ -344,7 +347,8 @@ By default, the response is ordered by ascending user ID.</p>
|
|||
"shadow_banned": 0,
|
||||
"displayname": "<User Two>",
|
||||
"avatar_url": "<avatar_url>",
|
||||
"creation_ts": 1561550621000
|
||||
"creation_ts": 1561550621000,
|
||||
"locked": false
|
||||
}
|
||||
],
|
||||
"next_token": "100",
|
||||
|
@ -414,6 +418,10 @@ Setting this value to <code>b</code> will reverse the above sort order. Defaults
|
|||
Can be provided multiple times. Possible values are <code>bot</code>, <code>support</code> or "empty string".
|
||||
"empty string" here means to exclude users without a type.</p>
|
||||
</li>
|
||||
<li>
|
||||
<p><code>locked</code> - string representing a bool - Is optional and if <code>true</code> will <strong>include</strong> locked users.
|
||||
Defaults to <code>false</code> to exclude locked users. Note: Introduced in v1.93.</p>
|
||||
</li>
|
||||
</ul>
|
||||
<p>Caution. The database only has indexes on the columns <code>name</code> and <code>creation_ts</code>.
|
||||
This means that if a different sort order is used (<code>is_guest</code>, <code>admin</code>,
|
||||
|
@ -438,6 +446,7 @@ This allows user type specific behaviour. There are also types <code>support</co
|
|||
<li><code>avatar_url</code> - string - The user's avatar URL if they have set one.</li>
|
||||
<li><code>creation_ts</code> - integer - The user's creation timestamp in ms.</li>
|
||||
<li><code>last_seen_ts</code> - integer - The user's last activity timestamp in ms.</li>
|
||||
<li><code>locked</code> - bool - Status if that user has been marked as locked. Note: Introduced in v1.93.</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li>
|
||||
|
@ -447,6 +456,7 @@ This allows user type specific behaviour. There are also types <code>support</co
|
|||
<p><code>total</code> - integer - Total number of media.</p>
|
||||
</li>
|
||||
</ul>
|
||||
<p><em>Added in Synapse 1.93:</em> the <code>locked</code> query parameter and response field.</p>
|
||||
<h2 id="query-current-sessions-for-a-user"><a class="header" href="#query-current-sessions-for-a-user">Query current sessions for a user</a></h2>
|
||||
<p>This API returns information about the active sessions for a specific user.</p>
|
||||
<p>The endpoints are:</p>
|
||||
|
|
|
@ -13880,7 +13880,8 @@ for a server admin: see <a href="admin_api/../usage/administration/admin_api/">A
|
|||
"external_id": "<user_id_provider_2>"
|
||||
}
|
||||
],
|
||||
"user_type": null
|
||||
"user_type": null,
|
||||
"locked": false
|
||||
}
|
||||
</code></pre>
|
||||
<p>URL parameters:</p>
|
||||
|
@ -13921,7 +13922,8 @@ specific <code>user_id</code>.</p>
|
|||
],
|
||||
"admin": false,
|
||||
"deactivated": false,
|
||||
"user_type": null
|
||||
"user_type": null,
|
||||
"locked": false
|
||||
}
|
||||
</code></pre>
|
||||
<p>Returns HTTP status code:</p>
|
||||
|
@ -14020,7 +14022,8 @@ By default, the response is ordered by ascending user ID.</p>
|
|||
"shadow_banned": 0,
|
||||
"displayname": "<User One>",
|
||||
"avatar_url": null,
|
||||
"creation_ts": 1560432668000
|
||||
"creation_ts": 1560432668000,
|
||||
"locked": false
|
||||
}, {
|
||||
"name": "<user_id2>",
|
||||
"is_guest": 0,
|
||||
|
@ -14031,7 +14034,8 @@ By default, the response is ordered by ascending user ID.</p>
|
|||
"shadow_banned": 0,
|
||||
"displayname": "<User Two>",
|
||||
"avatar_url": "<avatar_url>",
|
||||
"creation_ts": 1561550621000
|
||||
"creation_ts": 1561550621000,
|
||||
"locked": false
|
||||
}
|
||||
],
|
||||
"next_token": "100",
|
||||
|
@ -14101,6 +14105,10 @@ Setting this value to <code>b</code> will reverse the above sort order. Defaults
|
|||
Can be provided multiple times. Possible values are <code>bot</code>, <code>support</code> or "empty string".
|
||||
"empty string" here means to exclude users without a type.</p>
|
||||
</li>
|
||||
<li>
|
||||
<p><code>locked</code> - string representing a bool - Is optional and if <code>true</code> will <strong>include</strong> locked users.
|
||||
Defaults to <code>false</code> to exclude locked users. Note: Introduced in v1.93.</p>
|
||||
</li>
|
||||
</ul>
|
||||
<p>Caution. The database only has indexes on the columns <code>name</code> and <code>creation_ts</code>.
|
||||
This means that if a different sort order is used (<code>is_guest</code>, <code>admin</code>,
|
||||
|
@ -14125,6 +14133,7 @@ This allows user type specific behaviour. There are also types <code>support</co
|
|||
<li><code>avatar_url</code> - string - The user's avatar URL if they have set one.</li>
|
||||
<li><code>creation_ts</code> - integer - The user's creation timestamp in ms.</li>
|
||||
<li><code>last_seen_ts</code> - integer - The user's last activity timestamp in ms.</li>
|
||||
<li><code>locked</code> - bool - Status if that user has been marked as locked. Note: Introduced in v1.93.</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li>
|
||||
|
@ -14134,6 +14143,7 @@ This allows user type specific behaviour. There are also types <code>support</co
|
|||
<p><code>total</code> - integer - Total number of media.</p>
|
||||
</li>
|
||||
</ul>
|
||||
<p><em>Added in Synapse 1.93:</em> the <code>locked</code> query parameter and response field.</p>
|
||||
<h2 id="query-current-sessions-for-a-user"><a class="header" href="#query-current-sessions-for-a-user">Query current sessions for a user</a></h2>
|
||||
<p>This API returns information about the active sessions for a specific user.</p>
|
||||
<p>The endpoints are:</p>
|
||||
|
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
Loading…
Add table
Reference in a new issue