module Slack::Web::Api::Endpoints::Migration

Public Instance Methods

migration_exchange(options = {}) click to toggle source

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

@option options [Object] :users

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

@option options [Object] :team_id

Specify team_id starts with T in case of Org Token.

@option options [Object] :to_old

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

@see api.slack.com/methods/migration.exchange @see github.com/slack-ruby/slack-api-ref/blob/master/methods/migration/migration.exchange.json

# File lib/slack/web/api/endpoints/migration.rb, line 20
def migration_exchange(options = {})
  throw ArgumentError.new('Required arguments :users missing') if options[:users].nil?
  post('migration.exchange', options)
end