From 7eaff04809da14f5a5ff122dc4f83d8a27ba346b Mon Sep 17 00:00:00 2001 From: Will Hunt Date: Fri, 14 Jul 2023 11:01:51 +0100 Subject: [PATCH 1/2] Mention that you cannot login as yourself on /_synapse/admin/v1/users//login --- docs/admin_api/user_admin_api.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/admin_api/user_admin_api.md b/docs/admin_api/user_admin_api.md index 23f465e98db2..ac4f635099e6 100644 --- a/docs/admin_api/user_admin_api.md +++ b/docs/admin_api/user_admin_api.md @@ -732,7 +732,8 @@ POST /_synapse/admin/v1/users//login An optional `valid_until_ms` field can be specified in the request body as an integer timestamp that specifies when the token should expire. By default tokens -do not expire. +do not expire. Note that this API does not allow a user to login as themselves +(to create more tokens). A response body like the following is returned: From 60cfbbcbd531759367ed06aaac546f7d04753f78 Mon Sep 17 00:00:00 2001 From: Patrick Cloke Date: Fri, 14 Jul 2023 07:09:41 -0400 Subject: [PATCH 2/2] Newsfragment. --- changelog.d/15938.doc | 1 + 1 file changed, 1 insertion(+) create mode 100644 changelog.d/15938.doc diff --git a/changelog.d/15938.doc b/changelog.d/15938.doc new file mode 100644 index 000000000000..8d99e5f4ea6c --- /dev/null +++ b/changelog.d/15938.doc @@ -0,0 +1 @@ +Improve the documentation for the login as a user admin API.