1
0
Fork 0
mirror of https://github.com/element-hq/synapse.git synced 2025-03-21 07:12:40 +00:00
Commit graph

53 commits

Author SHA1 Message Date
Andrew Morgan
0fa7ffd76f
Move User Event Redaction Admin API version indicator to the correct place ()
Previously it was in the middle of the parameter definitions.
2025-02-25 17:18:15 +00:00
Shay
6b4cc9f3f6
Document suspension Admin API ()
Missed in the transition from experimental to stable. 

Fixes 
2025-02-20 19:40:30 +01:00
Travis Ralston
3d60a58ad6
Add last_seen_ts to query user example ()
This section could probably do with a lot more editorial attention, but
for now this is all there is in terms of documentation. The field is
already returned by Synapse:
4587decd67/synapse/handlers/admin.py (L150)

`last_seen_ts` was introduced in
https://github.com/matrix-org/synapse/pull/16218
2024-12-16 17:12:40 -06:00
Shay
8208186e3c
Add some useful endpoints to Admin API ()
- Fetch the number of invites the provided user has sent after a given
timestamp
- Fetch the number of rooms the provided user has joined after a given
timestamp, regardless if they have left/been banned from the rooms
subsequently
- Get report IDs of event reports where the provided user was the sender
of the reported event
2024-12-16 13:27:34 -06:00
Shay
4587decd67
Return suspended status when querying user account () 2024-11-22 12:37:19 +00:00
Shay
58deef5eba
Add admin handler to list of handlers used for background tasks ()
Fixes 

While we're at it, makes a change where the redactions are sent as the
admin if the user is not a member of the server (otherwise these fail
with a "User must be our own" message).
2024-10-29 13:50:13 -05:00
Shay
51dd4df0a3
Add an Admin API endpoint to redact all a user's events () 2024-09-18 10:08:01 +00:00
Jacob Sánchez
1b155362ca
Add note about external_ids for User Admin API in documentation () 2024-05-07 16:38:29 +00:00
Alexander Fechler
48f59d3806
deactivated flag refactored to filter deactivated users. ()
Co-authored-by: Andrew Morgan <1342360+anoadragon453@users.noreply.github.com>
2024-03-11 16:08:04 +00:00
Dirk Klimpel
14ed84ac33
Enable user without password ()
Closes:
- https://github.com/matrix-org/synapse/issues/10397
-  

An administrator should know whether he wants to set a password or not.
There are many uses cases where a blank password is required.

- Use of only some users with SSO.
- Use of bots with password, users with SSO
2024-01-02 11:52:51 +00:00
Michael Weimann
518e4de758
Update admin user API return types in docs. () 2023-11-17 13:38:25 +00:00
David Robertson
43d1aa75e8
Add an Admin API to temporarily grant the ability to update an existing cross-signing key without UIA () 2023-11-15 17:28:10 +00:00
Patrick Cloke
9fabde6ead
Fix-up deactivated notes in docs. () 2023-09-19 08:05:33 -04:00
Hanadi
eef2b9e344
Filter locked users in the admin API ()
Co-authored-by: Hanadi Tamimi <hanadi.tamimi@sdui.de>
2023-09-18 15:37:51 +01:00
Mathieu Velten
dcb2778341
Add last_seen_ts to the admin users API () 2023-09-04 18:13:28 +02:00
Will Hunt
5c9402b9fd
Add warnings about MSC3861 on certain APIs. () 2023-08-25 07:25:34 -04:00
Alexander Fechler
54317d34b7
Allow filtering for admins in the list accounts admin API () 2023-08-18 12:26:38 +01:00
Mathieu Velten
dac97642e4
Implements admin API to lock an user (MSC3939) () 2023-08-10 09:10:55 +00:00
Will Hunt
8d3656b994
Document that you cannot login as yourself on /_synapse/admin/v1/users/<user_id>/login () 2023-07-14 08:32:13 -04:00
Sumner Evans
cc780b3f77
docs/admin_api: fix header level on 'Users' page ()
Signed-off-by: Sumner Evans <sumner@beeper.com>
2023-07-05 16:15:56 +02:00
Michael Weimann
c8e81898b6
Add not_user_type param to the list accounts admin API ()
Signed-off-by: Michael Weimann <michaelw@element.io>
2023-07-04 15:03:20 -07:00
Quentin Gliech
41b9def9f2
Add a new admin API to create a new device for a user. ()
This allows an external service (e.g. the matrix-authentication-service)
to create devices for users.
2023-05-17 14:39:06 +00:00
Andrew Morgan
7c95b65873
Clean up and clarify "Create or modify Account" Admin API documentation () 2023-05-05 15:51:46 +01:00
reivilibre
4eb2f4e02b
Fix broken links in the Synapse documentation. ()
* Fix stale external links

* Fix some internal links

* Fix URLs without trailing / where needed

* Fix more links

* Newsfile

Signed-off-by: Olivier Wilkinson (reivilibre) <oliverw@matrix.org>

* Reapply docs/openid.md fix after conflict

Signed-off-by: Olivier Wilkinson (reivilibre) <oliverw@matrix.org>
2023-01-05 18:18:00 +00:00
Ashish Kumar
a3623af74e
Add an Admin API endpoint for looking up users based on 3PID () 2022-11-11 15:38:17 +00:00
Tadeusz Sośnierz
1433b5d5b6
Show erasure status when listing users in the Admin API ()
* Show erasure status when listing users in the Admin API

* Use USING when joining erased_users

* Add changelog entry

* Revert "Use USING when joining erased_users"

This reverts commit 30bd2bf106415caadcfdbdd1b234ef2b106cc394.

* Make the erased check work on postgres

* Add a testcase for showing erased user status

* Appease the style linter

* Explicitly convert `erased` to bool to make SQLite consistent with Postgres

This also adds us an easy way in to fix the other accidentally integered columns.

* Move erasure status test to UsersListTestCase

* Include user erased status when fetching user info via the admin API

* Document the erase status in user_admin_api

* Appease the linter and mypy

* Signpost comments in tests

Co-authored-by: Tadeusz Sośnierz <tadeusz@sosnierz.com>
Co-authored-by: David Robertson <david.m.robertson1@gmail.com>
2022-10-21 13:52:44 +01:00
Quentin Gliech
74f60cec92
Add an admin API endpoint to find a user based on its external ID in an auth provider. () 2022-09-16 12:29:03 +00:00
Dirk Klimpel
f799eac7ea
Add timestamp to user's consent ()
Co-authored-by: reivilibre <olivier@librepush.net>
2022-09-08 15:41:48 +00:00
Andrew Morgan
f9f03426de
Implement MSC3852: Expose last_seen_user_agent to users for their own devices; also expose to Admin API () 2022-08-19 16:17:10 +00:00
Patrick Cloke
1381563988
Inline URL preview documentation. ()
Inline URL preview documentation near the implementation.
2022-07-12 15:01:58 -04:00
Shay
8330fc9953
Cleanup references to sample config in the docs and redirect users to configuration manual () 2022-06-30 09:21:39 -07:00
Jan Christian Grünhage
fcd8703508
Allow updating passwords using the admin api without logging out devices () 2022-06-06 12:10:13 +01:00
Sami Olmari
813d728d09
Correct typo in user_admin_api.md device deletion JSON ()
Signed-off-by: Sami Olmari <sami@olmari.fi>
2022-04-25 12:39:15 +00:00
Patrick Cloke
444b04058b
Document why auth providers aren't validated in the admin API. ()
Since it is reasonable to give a future or past auth provider,
which might not be in the current configuration.
2022-02-18 17:24:25 +00:00
Dirk Klimpel
65ef21b1c7
Clarify that users' media are also preview images () 2022-02-04 14:39:14 +00:00
Christian Paul
6b1c265c21
Fix typo: unpind -> unbind ()
Co-authored-by: reivilibre <olivier@librepush.net>
2022-02-03 17:20:44 +00:00
Dirk Klimpel
0da2301b21
Consolidate the access_token information in the admin api ()
Co-authored-by: reivilibre <olivier@librepush.net>
2022-01-31 16:24:29 +00:00
reivilibre
df54c8485a
Remove account data (including client config, push rules and ignored users) upon user deactivation. ()
Co-authored-by: Patrick Cloke <clokep@users.noreply.github.com>
2022-01-24 13:37:00 +00:00
Andrew Morgan
18862f20b5
Remove the 'password_hash' from the Users Admin API endpoint response dictionary () 2022-01-14 14:53:33 +00:00
Dirk Klimpel
7a1cefc6e3
Add admin API to get users' account data ()
Co-authored-by: reivilibre <olivier@librepush.net>
2022-01-05 11:49:06 +00:00
Patrick Cloke
24b61f379a
Add ability to un-shadow-ban via the admin API. () 2021-11-16 12:43:53 +00:00
Stanislav Motylkov
b09d90cac9
Fix typos in the username_available admin API documentation. () 2021-11-09 21:11:05 +00:00
Jason Robinson
63cbdd8af0
Enable changing user type via users admin API ()
Users admin API can now also modify user
type in addition to allowing it to be
set on user creation.

Signed-off-by: Jason Robinson <jasonr@matrix.org>
Co-authored-by: Brendan Abolivier <babolivier@matrix.org>
2021-10-26 09:01:06 +00:00
Dirk Klimpel
b0f03aeb6a
Add more information what happens when a user is deactivated () 2021-10-22 09:00:28 +01:00
Dirk Klimpel
220f901229
Remove not needed database updates in modify user admin API () 2021-08-19 10:25:05 +01:00
Dirk Klimpel
3bcd525b46
Allow to edit external_ids by Edit User admin API ()
Signed-off-by: Dirk Klimpel dirk@klimpel.org
2021-08-17 11:56:11 +01:00
Will Hunt
a933c2c7d8
Add an admin API to check if a username is available ()
This adds a new API GET /_synapse/admin/v1/username_available?username=foo to check if a username is available. It is the counterpart to https://matrix.org/docs/spec/client_server/r0.6.0#get-matrix-client-r0-register-available, except that it works even if registration is disabled.
2021-08-17 10:52:38 +01:00
Dirk Klimpel
915b37e5ef
Admin API to delete media for a specific user () 2021-08-11 19:29:59 +00:00
Dirk Klimpel
89c4ca81bb
Add creation_ts to list users admin API ()
Signed-off-by: Dirk Klimpel dirk@klimpel.org
2021-07-22 16:05:16 +02:00
Dirk Klimpel
6c02cca95f
Add SSO external_ids to Query User Account admin API ()
Related to 
2021-07-01 11:26:24 +02:00