module Slack::Endpoint::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] :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/aki017/slack-api-docs/blob/master/methods/migration.exchange.md @see github.com/aki017/slack-api-docs/blob/master/methods/migration.exchange.json

# 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