This repository has been archived by the owner on Apr 26, 2024. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Admin API to join users to a room. (#7051)
- Loading branch information
Showing
5 changed files
with
405 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Admin API `POST /_synapse/admin/v1/join/<roomIdOrAlias>` to join users to a room like `auto_join_rooms` for creation of users. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
# Edit Room Membership API | ||
|
||
This API allows an administrator to join an user account with a given `user_id` | ||
to a room with a given `room_id_or_alias`. You can only modify the membership of | ||
local users. The server administrator must be in the room and have permission to | ||
invite users. | ||
|
||
## Parameters | ||
|
||
The following parameters are available: | ||
|
||
* `user_id` - Fully qualified user: for example, `@user:server.com`. | ||
* `room_id_or_alias` - The room identifier or alias to join: for example, | ||
`!636q39766251:server.com`. | ||
|
||
## Usage | ||
|
||
``` | ||
POST /_synapse/admin/v1/join/<room_id_or_alias> | ||
{ | ||
"user_id": "@user:server.com" | ||
} | ||
``` | ||
|
||
Including an `access_token` of a server admin. | ||
|
||
Response: | ||
|
||
``` | ||
{ | ||
"room_id": "!636q39766251:server.com" | ||
} | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.