@@ -123,29 +123,60 @@ async def admin_apps_restricted_list(self, **kwargs) -> AsyncSlackResponse:
123123 )
124124
125125 async def admin_conversations_restrictAccess_addGroup (
126- self , ** kwargs
126+ self , * , channel_id : str , group_id : str , * *kwargs
127127 ) -> AsyncSlackResponse :
128- """Add an allowlist of IDP groups for accessing a channel."""
128+ """Add an allowlist of IDP groups for accessing a channel.
129+
130+ Args:
131+ channel_id (str): The channel to link this group to. e.g. 'C1234567890'
132+ group_id (str): The IDP Group ID to be an allowlist for the private channel. 'S0604QSJC'
133+ team_id (str): The workspace where the channel exists.
134+ This argument is required for channels only tied to one workspace,
135+ and optional for channels that are shared across an organization.
136+ e.g 'T1234'
137+ """
138+ kwargs .update ({"channel_id" : channel_id , "group_id" : group_id })
129139 return await self .api_call (
130140 "admin.conversations.restrictAccess.addGroup" ,
131141 http_verb = "GET" ,
132142 params = kwargs ,
133143 )
134144
135145 async def admin_conversations_restrictAccess_listGroups (
136- self , ** kwargs
146+ self , * , channel_id : str , * *kwargs
137147 ) -> AsyncSlackResponse :
138- """List all IDP Groups linked to a channel."""
148+ """List all IDP Groups linked to a channel.
149+
150+ Args:
151+ channel_id (str): The channel to link this group to. e.g. 'C1234567890'
152+ team_id (str): The workspace where the channel exists.
153+ This argument is required for channels only tied to one workspace,
154+ and optional for channels that are shared across an organization.
155+ e.g 'T1234'
156+ """
157+ kwargs .update ({"channel_id" : channel_id })
139158 return await self .api_call (
140159 "admin.conversations.restrictAccess.listGroups" ,
141160 http_verb = "GET" ,
142161 params = kwargs ,
143162 )
144163
145164 async def admin_conversations_restrictAccess_removeGroup (
146- self , ** kwargs
165+ self , * , channel_id : str , group_id : str , team_id : str , * *kwargs
147166 ) -> AsyncSlackResponse :
148- """Remove a linked IDP group linked from a private channel."""
167+ """Remove a linked IDP group linked from a private channel.
168+
169+ Args:
170+ channel_id (str): The channel to link this group to. e.g. 'C1234567890'
171+ group_id (str): The IDP Group ID to be an allowlist for the private channel. 'S0604QSJC'
172+ team_id (str): The workspace where the channel exists.
173+ This argument is required for channels only tied to one workspace,
174+ and optional for channels that are shared across an organization.
175+ e.g 'T1234'
176+ """
177+ kwargs .update (
178+ {"channel_id" : channel_id , "group_id" : group_id , "team_id" : team_id }
179+ )
149180 return await self .api_call (
150181 "admin.conversations.restrictAccess.removeGroup" ,
151182 http_verb = "GET" ,
0 commit comments