From 2d592cd7cdd7f73ea749cbcef30c7220eaa53b4f Mon Sep 17 00:00:00 2001 From: Kazuhiro Sera Date: Thu, 2 Nov 2023 14:39:28 +0900 Subject: [PATCH] Add new arguments to admin.users.list API method (#1418) --- slack_sdk/web/async_client.py | 4 ++++ slack_sdk/web/client.py | 4 ++++ slack_sdk/web/legacy_client.py | 4 ++++ 3 files changed, 12 insertions(+) diff --git a/slack_sdk/web/async_client.py b/slack_sdk/web/async_client.py index 5528c87a..15767792 100644 --- a/slack_sdk/web/async_client.py +++ b/slack_sdk/web/async_client.py @@ -1675,6 +1675,8 @@ async def admin_users_list( self, *, team_id: str, + include_deactivated_user_workspaces: Optional[bool] = None, + is_active: Optional[bool] = None, cursor: Optional[str] = None, limit: Optional[int] = None, **kwargs, @@ -1685,6 +1687,8 @@ async def admin_users_list( kwargs.update( { "team_id": team_id, + "include_deactivated_user_workspaces": include_deactivated_user_workspaces, + "is_active": is_active, "cursor": cursor, "limit": limit, } diff --git a/slack_sdk/web/client.py b/slack_sdk/web/client.py index 2603c5ae..7bad6fe8 100644 --- a/slack_sdk/web/client.py +++ b/slack_sdk/web/client.py @@ -1666,6 +1666,8 @@ def admin_users_list( self, *, team_id: str, + include_deactivated_user_workspaces: Optional[bool] = None, + is_active: Optional[bool] = None, cursor: Optional[str] = None, limit: Optional[int] = None, **kwargs, @@ -1676,6 +1678,8 @@ def admin_users_list( kwargs.update( { "team_id": team_id, + "include_deactivated_user_workspaces": include_deactivated_user_workspaces, + "is_active": is_active, "cursor": cursor, "limit": limit, } diff --git a/slack_sdk/web/legacy_client.py b/slack_sdk/web/legacy_client.py index 40403f39..09ff7a89 100644 --- a/slack_sdk/web/legacy_client.py +++ b/slack_sdk/web/legacy_client.py @@ -1677,6 +1677,8 @@ def admin_users_list( self, *, team_id: str, + include_deactivated_user_workspaces: Optional[bool] = None, + is_active: Optional[bool] = None, cursor: Optional[str] = None, limit: Optional[int] = None, **kwargs, @@ -1687,6 +1689,8 @@ def admin_users_list( kwargs.update( { "team_id": team_id, + "include_deactivated_user_workspaces": include_deactivated_user_workspaces, + "is_active": is_active, "cursor": cursor, "limit": limit, }