# This file was auto-generated by lib/tasks/web.rake module Slack module Web module Api module Endpoints module UsergroupsUsers # # This method returns a list of all users within 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 https://api.slack.com/methods/usergroups.users.list # @see https://github.com/slack-ruby/slack-api-ref/blob/master/methods/usergroups.users/usergroups.users.list.json def usergroups_users_list(options = {}) throw ArgumentError.new('Required arguments :usergroup missing') if options[:usergroup].nil? post('usergroups.users.list', options) end # # This method updates the list of users that belong to a User Group. This method replaces all users in a User Group with the list of users provided in the users parameter. # # @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 https://api.slack.com/methods/usergroups.users.update # @see https://github.com/slack-ruby/slack-api-ref/blob/master/methods/usergroups.users/usergroups.users.update.json 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 end end end end end