Use the UserMappingService class to query for existing user mappings stored in Salesforce. A Slack user mapping is created when a user links their Salesforce and Slack accounts in these ways.
A Salesforce connection is established in Slack and a user’s accounts are mapped, either automatically or manually.
A Slack user authenticates a Salesforce app by using their Salesforce account.
Given a list of Slack user IDs, get the associated Salesforce user IDs. If at least one successful
mapping is possible, then the returned map contains an entry for each supplied Slack user ID.
Gets the Slack user ID for a given Salesforce ID within a Slack workspace. If you’re calling from an Enterprise organization, make sure that you pass your Slack Enterprise ID for the teamId parameter. See Slack’s team.info method.
Given a list of Salesforce user IDs in a Slack workspace for a specific Slack App, get
the associated Slack user mappings. If at least one successful mapping is possible, then the returned
map contains an entry for each supplied Salesforce user ID. If you’re calling from an Enterprise organization, make sure that you pass your Slack Enterprise ID for the teamId parameter. See Slack’s team.info method.
This feature is not generally available. It is not part of your purchased Services. This feature is subject to change, may be discontinued with no notice at any time in SFDC’s sole discretion, and SFDC may never make this feature generally available. Make your purchase decisions only on the basis of generally available products and features. This feature is made available on an AS IS basis and use of this feature is at your sole risk.