Skip to content

Commit 32d6416

Browse files
committed
Add logout_devices to User.create_modify
matrix-org/synapse#12952
1 parent 455aac4 commit 32d6416

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

synapse_admin/user.py

+4-1
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,8 @@ def create_modify(
147147
admin: bool = None,
148148
deactivated: bool = None,
149149
external_ids: list = None,
150-
user_type: Union[str, None] = ""
150+
user_type: Union[str, None] = "",
151+
logout: bool = None
151152
) -> bool:
152153
"""Create or modify a user
153154
@@ -184,6 +185,8 @@ def create_modify(
184185
body["external_ids"] = external_ids
185186
if user_type != "":
186187
body["user_type"] = user_type
188+
if isinstance(logout, bool):
189+
body["logout_devices"] = logout
187190

188191
userid = self.validate_username(userid)
189192
resp = self.connection.request(

0 commit comments

Comments
 (0)