module Slack::Web::Api::Endpoints::UsergroupsUsers
Public Instance Methods
usergroups_users_list(options = {})
click to toggle source
List all users in a User Group
@option options [Object] :usergroup
The encoded ID of the User Group to update.
@option options [Object] :include_disabled
Allow results that involve disabled User Groups.
@see api.slack.com/methods/usergroups.users.list @see github.com/slack-ruby/slack-api-ref/blob/master/methods/usergroups.users/usergroups.users.list.json
# File lib/slack/web/api/endpoints/usergroups_users.rb, line 17 def usergroups_users_list(options = {}) throw ArgumentError.new('Required arguments :usergroup missing') if options[:usergroup].nil? post('usergroups.users.list', options) end
usergroups_users_update(options = {})
click to toggle source
Update the list of users for a User Group
@option options [Object] :usergroup
The encoded ID of the User Group to update.
@option options [Object] :users
A comma separated string of encoded user IDs that represent the entire list of users for the User Group.
@option options [Object] :include_count
Include the number of users in the User Group.
@see api.slack.com/methods/usergroups.users.update @see github.com/slack-ruby/slack-api-ref/blob/master/methods/usergroups.users/usergroups.users.update.json
# File lib/slack/web/api/endpoints/usergroups_users.rb, line 33 def usergroups_users_update(options = {}) throw ArgumentError.new('Required arguments :usergroup missing') if options[:usergroup].nil? throw ArgumentError.new('Required arguments :users missing') if options[:users].nil? post('usergroups.users.update', options) end