Module: Slack::Web::Api::Endpoints::AdminUsergroups
- Included in:
- Slack::Web::Api::Endpoints
- Defined in:
- lib/slack/web/api/endpoints/admin_usergroups.rb
Instance Method Summary collapse
-
#admin_usergroups_addChannels(options = {}) ⇒ Object
Add up to one hundred default channels to an IDP group.
-
#admin_usergroups_addTeams(options = {}) ⇒ Object
Associate one or more default workspaces with an organization-wide IDP group.
-
#admin_usergroups_listChannels(options = {}) ⇒ Object
List the channels linked to an org-level IDP group (user group).
-
#admin_usergroups_removeChannels(options = {}) ⇒ Object
Remove one or more default channels from an org-level IDP group (user group).
Instance Method Details
#admin_usergroups_addChannels(options = {}) ⇒ Object
Add up to one hundred default channels to an IDP group.
20 21 22 23 24 |
# File 'lib/slack/web/api/endpoints/admin_usergroups.rb', line 20 def admin_usergroups_addChannels( = {}) throw ArgumentError.new('Required arguments :channel_ids missing') if [:channel_ids].nil? throw ArgumentError.new('Required arguments :usergroup_id missing') if [:usergroup_id].nil? post('admin.usergroups.addChannels', ) end |
#admin_usergroups_addTeams(options = {}) ⇒ Object
Associate one or more default workspaces with an organization-wide IDP group.
37 38 39 40 41 |
# File 'lib/slack/web/api/endpoints/admin_usergroups.rb', line 37 def admin_usergroups_addTeams( = {}) throw ArgumentError.new('Required arguments :team_ids missing') if [:team_ids].nil? throw ArgumentError.new('Required arguments :usergroup_id missing') if [:usergroup_id].nil? post('admin.usergroups.addTeams', ) end |
#admin_usergroups_listChannels(options = {}) ⇒ Object
List the channels linked to an org-level IDP group (user group).
54 55 56 57 |
# File 'lib/slack/web/api/endpoints/admin_usergroups.rb', line 54 def admin_usergroups_listChannels( = {}) throw ArgumentError.new('Required arguments :usergroup_id missing') if [:usergroup_id].nil? post('admin.usergroups.listChannels', ) end |
#admin_usergroups_removeChannels(options = {}) ⇒ Object
Remove one or more default channels from an org-level IDP group (user group).
68 69 70 71 72 |
# File 'lib/slack/web/api/endpoints/admin_usergroups.rb', line 68 def admin_usergroups_removeChannels( = {}) throw ArgumentError.new('Required arguments :channel_ids missing') if [:channel_ids].nil? throw ArgumentError.new('Required arguments :usergroup_id missing') if [:usergroup_id].nil? post('admin.usergroups.removeChannels', ) end |