From 3d60a58ad6a7db2ff06a06c6b95012466ee586f4 Mon Sep 17 00:00:00 2001
From: Travis Ralston <travisr@element.io>
Date: Mon, 16 Dec 2024 16:12:40 -0700
Subject: [PATCH] Add `last_seen_ts` to query user example (#17976)

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:
https://github.com/element-hq/synapse/blob/4587decd678300217969f1d2f69b226421a33ced/synapse/handlers/admin.py#L150

`last_seen_ts` was introduced in
https://github.com/matrix-org/synapse/pull/16218
---
 changelog.d/17976.doc            | 1 +
 docs/admin_api/user_admin_api.md | 1 +
 2 files changed, 2 insertions(+)
 create mode 100644 changelog.d/17976.doc

diff --git a/changelog.d/17976.doc b/changelog.d/17976.doc
new file mode 100644
index 0000000000..c45ead4cf9
--- /dev/null
+++ b/changelog.d/17976.doc
@@ -0,0 +1 @@
+Add previously-undocumented `last_seen_ts` to query user admin API.
\ No newline at end of file
diff --git a/docs/admin_api/user_admin_api.md b/docs/admin_api/user_admin_api.md
index c63b7068c5..2742d2d2cd 100644
--- a/docs/admin_api/user_admin_api.md
+++ b/docs/admin_api/user_admin_api.md
@@ -40,6 +40,7 @@ It returns a JSON body like the following:
     "erased": false,
     "shadow_banned": 0,
     "creation_ts": 1560432506,
+    "last_seen_ts": 1732919539393,
     "appservice_id": null,
     "consent_server_notice_sent": null,
     "consent_version": null,
-- 
GitLab