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

Easily convert your vintage user IDs to Enterprise Grid-friendly global user IDs.

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