Module: Slack::Web::Api::Endpoints::Migration

Included in:
Slack::Web::Api::Endpoints
Defined in:
lib/slack/web/api/endpoints/migration.rb

Instance Method Summary collapse

Instance Method Details

#migration_exchange(options = {}) ⇒ Object

For Enterprise Grid workspaces, map local user IDs to global user IDs

Parameters:

  • options (Hash) (defaults to: {})

    a customizable set of options

Options Hash (options):

  • :users (Object)

    A comma-separated list of user ids, up to 400 per request.

  • :to_old (Object)

    Specify true to convert W global user IDs to workspace-specific U IDs. Defaults to false.

See Also:



17
18
19
20
# File 'lib/slack/web/api/endpoints/migration.rb', line 17

def migration_exchange(options = {})
  throw ArgumentError.new('Required arguments :users missing') if options[:users].nil?
  post('migration.exchange', options)
end