Module: Slack::Web::Api::Endpoints::AdminUsersSession
- Included in:
- Slack::Web::Api::Endpoints
- Defined in:
- lib/slack/web/api/endpoints/admin_users_session.rb
Instance Method Summary collapse
-
#admin_users_session_clearSettings(options = {}) ⇒ Object
Clear user-specific session settings—the session duration and what happens when the client closes—for a list of users.
-
#admin_users_session_getSettings(options = {}) ⇒ Object
Get user-specific session settings—the session duration and what happens when the client closes—given a list of users.
-
#admin_users_session_invalidate(options = {}) ⇒ Object
Revoke a single session for a user.
-
#admin_users_session_list(options = {}) ⇒ Object
List active user sessions for an organization.
-
#admin_users_session_reset(options = {}) ⇒ Object
Wipes all valid sessions on all devices for a given user.
-
#admin_users_session_resetBulk(options = {}) ⇒ Object
Enqueues an asynchronous job to wipe all valid sessions on all devices for a given list of users.
-
#admin_users_session_setSettings(options = {}) ⇒ Object
Configure the user-level session settings—the session duration and what happens when the client closes—for one or more users.
Instance Method Details
#admin_users_session_clearSettings(options = {}) ⇒ Object
Clear user-specific session settings—the session duration and what happens when the client closes—for a list of users.
16 17 18 19 |
# File 'lib/slack/web/api/endpoints/admin_users_session.rb', line 16 def admin_users_session_clearSettings( = {}) raise ArgumentError, 'Required arguments :user_ids missing' if [:user_ids].nil? post('admin.users.session.clearSettings', ) end |
#admin_users_session_getSettings(options = {}) ⇒ Object
Get user-specific session settings—the session duration and what happens when the client closes—given a list of users.
28 29 30 31 |
# File 'lib/slack/web/api/endpoints/admin_users_session.rb', line 28 def admin_users_session_getSettings( = {}) raise ArgumentError, 'Required arguments :user_ids missing' if [:user_ids].nil? post('admin.users.session.getSettings', ) end |
#admin_users_session_invalidate(options = {}) ⇒ Object
Revoke a single session for a user. The user will be forced to login to Slack.
42 43 44 45 46 |
# File 'lib/slack/web/api/endpoints/admin_users_session.rb', line 42 def admin_users_session_invalidate( = {}) raise ArgumentError, 'Required arguments :session_id missing' if [:session_id].nil? raise ArgumentError, 'Required arguments :team_id missing' if [:team_id].nil? post('admin.users.session.invalidate', ) end |
#admin_users_session_list(options = {}) ⇒ Object
List active user sessions for an organization
61 62 63 64 65 66 67 68 69 |
# File 'lib/slack/web/api/endpoints/admin_users_session.rb', line 61 def admin_users_session_list( = {}) if block_given? Pagination::Cursor.new(self, :admin_users_session_list, ).each do |page| yield page end else post('admin.users.session.list', ) end end |
#admin_users_session_reset(options = {}) ⇒ Object
Wipes all valid sessions on all devices for a given user
82 83 84 85 |
# File 'lib/slack/web/api/endpoints/admin_users_session.rb', line 82 def admin_users_session_reset( = {}) raise ArgumentError, 'Required arguments :user_id missing' if [:user_id].nil? post('admin.users.session.reset', ) end |
#admin_users_session_resetBulk(options = {}) ⇒ Object
Enqueues an asynchronous job to wipe all valid sessions on all devices for a given list of users
98 99 100 101 |
# File 'lib/slack/web/api/endpoints/admin_users_session.rb', line 98 def admin_users_session_resetBulk( = {}) raise ArgumentError, 'Required arguments :user_ids missing' if [:user_ids].nil? post('admin.users.session.resetBulk', ) end |
#admin_users_session_setSettings(options = {}) ⇒ Object
Configure the user-level session settings—the session duration and what happens when the client closes—for one or more users.
114 115 116 117 |
# File 'lib/slack/web/api/endpoints/admin_users_session.rb', line 114 def admin_users_session_setSettings( = {}) raise ArgumentError, 'Required arguments :user_ids missing' if [:user_ids].nil? post('admin.users.session.setSettings', ) end |