module Slack::Web::Api::Endpoints::AdminConversationsRestrictaccess

Public Instance Methods

admin_conversations_restrictAccess_addGroup(options = {}) click to toggle source

Add an allowlist of IDP groups for accessing a channel

@option options [Object] :channel_id

The channel to link this group to.

@option options [Object] :group_id

The IDP Group ID to be an allowlist for the private channel.

@option options [Object] :team_id

The workspace where the channel exists. This argument is required for channels only tied to one workspace, and optional for channels that are shared across an organization.

@see api.slack.com/methods/admin.conversations.restrictAccess.addGroup @see github.com/slack-ruby/slack-api-ref/blob/master/methods/admin.conversations.restrictAccess/admin.conversations.restrictAccess.addGroup.json

# File lib/slack/web/api/endpoints/admin_conversations_restrictAccess.rb, line 20
def admin_conversations_restrictAccess_addGroup(options = {})
  throw ArgumentError.new('Required arguments :channel_id missing') if options[:channel_id].nil?
  throw ArgumentError.new('Required arguments :group_id missing') if options[:group_id].nil?
  post('admin.conversations.restrictAccess.addGroup', options)
end
admin_conversations_restrictAccess_listGroups(options = {}) click to toggle source

List all IDP Groups linked to a channel

@option options [Object] :channel_id

.

@option options [Object] :team_id

The workspace where the channel exists. This argument is required for channels only tied to one workspace, and optional for channels that are shared across an organization.

@see api.slack.com/methods/admin.conversations.restrictAccess.listGroups @see github.com/slack-ruby/slack-api-ref/blob/master/methods/admin.conversations.restrictAccess/admin.conversations.restrictAccess.listGroups.json

# File lib/slack/web/api/endpoints/admin_conversations_restrictAccess.rb, line 35
def admin_conversations_restrictAccess_listGroups(options = {})
  throw ArgumentError.new('Required arguments :channel_id missing') if options[:channel_id].nil?
  post('admin.conversations.restrictAccess.listGroups', options)
end
admin_conversations_restrictAccess_removeGroup(options = {}) click to toggle source

Remove a linked IDP group linked from a private channel

@option options [Object] :channel_id

The channel to remove the linked group from.

@option options [Object] :group_id

The IDP Group ID to remove from the private channel.

@option options [Object] :team_id

The workspace where the channel exists. This argument is required for channels only tied to one workspace, and optional for channels that are shared across an organization.

@see api.slack.com/methods/admin.conversations.restrictAccess.removeGroup @see github.com/slack-ruby/slack-api-ref/blob/master/methods/admin.conversations.restrictAccess/admin.conversations.restrictAccess.removeGroup.json

# File lib/slack/web/api/endpoints/admin_conversations_restrictAccess.rb, line 51
def admin_conversations_restrictAccess_removeGroup(options = {})
  throw ArgumentError.new('Required arguments :channel_id missing') if options[:channel_id].nil?
  throw ArgumentError.new('Required arguments :group_id missing') if options[:group_id].nil?
  throw ArgumentError.new('Required arguments :team_id missing') if options[:team_id].nil?
  post('admin.conversations.restrictAccess.removeGroup', options)
end