Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Commit

Permalink
Document that you cannot login as yourself on /_synapse/admin/v1/user…
Browse files Browse the repository at this point in the history
…s/<user_id>/login (#15938)
  • Loading branch information
Half-Shot authored Jul 14, 2023
1 parent 20ae617 commit 8d3656b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions changelog.d/15938.doc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Improve the documentation for the login as a user admin API.
3 changes: 2 additions & 1 deletion docs/admin_api/user_admin_api.md
Original file line number Diff line number Diff line change
Expand Up @@ -732,7 +732,8 @@ POST /_synapse/admin/v1/users/<user_id>/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:

Expand Down

0 comments on commit 8d3656b

Please sign in to comment.