Module: Slack::Web::Api::Endpoints::AdminConversationsRestrictaccess
- Included in:
- Slack::Web::Api::Endpoints
- Defined in:
- lib/slack/web/api/endpoints/admin_conversations_restrictAccess.rb
Instance Method Summary collapse
-
#admin_conversations_restrictAccess_addGroup(options = {}) ⇒ Object
Add an allowlist of IDP groups for accessing a channel.
-
#admin_conversations_restrictAccess_listGroups(options = {}) ⇒ Object
List all IDP Groups linked to a channel.
-
#admin_conversations_restrictAccess_removeGroup(options = {}) ⇒ Object
Remove a linked IDP group linked from a private channel.
Instance Method Details
#admin_conversations_restrictAccess_addGroup(options = {}) ⇒ Object
Add an allowlist of IDP groups for accessing a channel
20 21 22 23 24 |
# File 'lib/slack/web/api/endpoints/admin_conversations_restrictAccess.rb', line 20 def admin_conversations_restrictAccess_addGroup( = {}) raise ArgumentError, 'Required arguments :channel_id missing' if [:channel_id].nil? raise ArgumentError, 'Required arguments :group_id missing' if [:group_id].nil? post('admin.conversations.restrictAccess.addGroup', ) end |
#admin_conversations_restrictAccess_listGroups(options = {}) ⇒ Object
List all IDP Groups linked to a channel
35 36 37 38 |
# File 'lib/slack/web/api/endpoints/admin_conversations_restrictAccess.rb', line 35 def admin_conversations_restrictAccess_listGroups( = {}) raise ArgumentError, 'Required arguments :channel_id missing' if [:channel_id].nil? post('admin.conversations.restrictAccess.listGroups', ) end |
#admin_conversations_restrictAccess_removeGroup(options = {}) ⇒ Object
Remove a linked IDP group linked from a private channel
51 52 53 54 55 56 |
# File 'lib/slack/web/api/endpoints/admin_conversations_restrictAccess.rb', line 51 def admin_conversations_restrictAccess_removeGroup( = {}) raise ArgumentError, 'Required arguments :channel_id missing' if [:channel_id].nil? raise ArgumentError, 'Required arguments :group_id missing' if [:group_id].nil? raise ArgumentError, 'Required arguments :team_id missing' if [:team_id].nil? post('admin.conversations.restrictAccess.removeGroup', ) end |