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 (array)

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

  • :team_id (string)

    Specify team_id starts with T in case of Org Token.

  • :to_old (boolean)

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

Raises:

  • (ArgumentError)

See Also:



20
21
22
23
# File 'lib/slack/web/api/endpoints/migration.rb', line 20

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