1
0
Fork 0
mirror of https://github.com/element-hq/synapse.git synced 2025-03-20 06:34:47 +00:00
Commit graph

204 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
Shay
e34fd1228d
Add the ability to filter by state event type on admin room state endpoint ()
Adds a query param `type` to `/_synapse/admin/v1/rooms/{room_id}/state`
that filters the state event query by state event type.

---------

Co-authored-by: Andrew Morgan <1342360+anoadragon453@users.noreply.github.com>
2025-01-08 15:38:26 +00: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
Erik Johnston
361bdafb87
Add experimental support for MSC4222 ()
Basically, if the client sets a special query param on `/sync` v2
instead of responding with `state` at the *start* of the timeline, we
instead respond with `state_after` at the *end* of the timeline.

We do this by using the `current_state_delta_stream` table, which is
actually reliable, rather than messing around with "state at" points on
the timeline.

c.f. MSC4222
2024-11-05 14:45:57 +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
Erik Johnston
8e9e6f1a0a
Allow enabling sliding sync per-user ()
Based on 
2024-07-05 13:04:27 +01:00
Erik Johnston
57538eb4d9
Finish up work to allow per-user feature flags ()
Follows on from @H-Shay's great work at
https://github.com/matrix-org/synapse/pull/15344 and MSC4026.

Also enables its use for MSC3881, mainly as an easy but concrete example
of how to use it.
2024-07-05 13:02:35 +01:00
Alexander Fechler
9104a9f0d0
Filter added to Admin-API GET /rooms () 2024-06-19 11:45:48 +01:00
Jacob Sánchez
1b155362ca
Add note about external_ids for User Admin API in documentation () 2024-05-07 16:38:29 +00:00
devonh
0fd6b269d3
Fix various typos in docs ()
### Pull Request Checklist

<!-- Please read
https://element-hq.github.io/synapse/latest/development/contributing_guide.html
before submitting your pull request -->

* [X] Pull request is based on the develop branch
* [X] Pull request includes a [changelog
file](https://element-hq.github.io/synapse/latest/development/contributing_guide.html#changelog).
The entry should:
- Be a short description of your change which makes sense to users.
"Fixed a bug that prevented receiving messages from other servers."
instead of "Moved X method from `EventStore` to `EventWorkerStore`.".
  - Use markdown where necessary, mostly for `code blocks`.
  - End with either a period (.) or an exclamation mark (!).
  - Start with a capital letter.
- Feel free to credit yourself, by adding a sentence "Contributed by
@github_username." or "Contributed by [Your Name]." to the end of the
entry.
* [X] [Code
style](https://element-hq.github.io/synapse/latest/code_style.html) is
correct
(run the
[linters](https://element-hq.github.io/synapse/latest/development/contributing_guide.html#run-the-linters))
2024-04-26 18:10:45 +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
Rainer Zufall
1b7304c8b4
fix typo in admin_api/rooms.md ()
Co-authored-by: Andrew Morgan <andrew@amorgan.xyz>
2024-02-20 12:20:23 +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
Erik Johnston
0455c40085 Update book location 2023-12-13 16:15:22 +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
Will Hunt
4dd18bdc2e
Improve documentation for /_synapse/admin/v1/rooms/<room_id>/timestamp_to_event () 2023-11-14 11:43:44 -05:00
MomentQYC
5725712d47
Remove Python version from /_synapse/admin/v1/server_version ()
There's no reason to expose the full Python version over what is
frequently a public API.
2023-10-02 09:07:53 -04: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
ew-at-vier
2301a09d7a
Fix admin api documentation typo ()
* Fix admin api documentation typo

Signed-off-by: Eric Wolf <eric.wolf@vier.ai>
2023-06-20 10:45:26 +00: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
Reto Schneider
7e6ad62c49
Fix documented path to largest rooms statistics endpoint. () 2023-05-10 13:00:27 +00:00
Andrew Morgan
7c95b65873
Clean up and clarify "Create or modify Account" Admin API documentation () 2023-05-05 15:51:46 +01:00
Shay
0e8aa2a1b2
Remove references to supporting per-user flag for msc2654 () 2023-05-02 14:21:36 -07:00
Shay
89f6fb0d5a
Add an admin API endpoint to support per-user feature flags () 2023-04-28 11:33:45 -07:00
Erik Johnston
9900f7c231
Add admin endpoint to query room sizes () 2023-04-26 16:00:11 +00:00
Dirk Klimpel
93f7955eba
Admin API endpoint to delete a reported event ()
* Admin api to delete event report

* lint +  tests

* newsfile

* Apply suggestions from code review

Co-authored-by: David Robertson <david.m.robertson1@gmail.com>

* revert changes - move to WorkerStore

* update unit test

* Note that timestamp is in millseconds

---------

Co-authored-by: David Robertson <david.m.robertson1@gmail.com>
2023-02-28 12:09:10 +00:00
Patrick Cloke
d22c1c862c
Respond correctly to unknown methods on known endpoints ()
Respond with a 405 error if a request is received on a known endpoint,
but to an unknown method, per MSC3743.
2023-02-09 13:04:24 -05: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
Patrick Cloke
8c3dcdf1b9
Fix the cross-link from register admin API to config docs. () 2022-09-22 09:11:50 -04: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
Connor Davis
bb5b47b62a
Add Admin API to Fetch Messages Within a Particular Window ()
This adds two new admin APIs that allow us to fetch messages from a room within a particular time.
2022-09-07 10:54:44 +01:00
Richard van der Hoff
c4e29b6908
Improve documentation around user registration ()
Update a bunch of the documentation for user registration, add some cross
links, etc.
2022-08-26 13:29:31 +00:00
David Robertson
d6f5699737
Describe changes to admin API in 1.66
Cross-ref 
2022-08-23 10:09:45 +01: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