Skip to content

Commit

Permalink
Add logout_devices to User.create_modify
Browse files Browse the repository at this point in the history
  • Loading branch information
KnugiHK committed Jun 8, 2022
1 parent 455aac4 commit 32d6416
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion synapse_admin/user.py
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,8 @@ def create_modify(
admin: bool = None,
deactivated: bool = None,
external_ids: list = None,
user_type: Union[str, None] = ""
user_type: Union[str, None] = "",
logout: bool = None
) -> bool:
"""Create or modify a user
Expand Down Expand Up @@ -184,6 +185,8 @@ def create_modify(
body["external_ids"] = external_ids
if user_type != "":
body["user_type"] = user_type
if isinstance(logout, bool):
body["logout_devices"] = logout

userid = self.validate_username(userid)
resp = self.connection.request(
Expand Down

0 comments on commit 32d6416

Please sign in to comment.