Module: Slack::Endpoint::Migration

Included in:
Slack::Endpoint
Defined in:
lib/slack/endpoint/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:



16
17
18
19
# File 'lib/slack/endpoint/migration.rb', line 16

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