I'm building a Slack slash command that looks like the following
/shoutout [@recipient with message]
This will trigger a POST to my server with both the sender and recipient's user IDs. However, I need their full names. I'd like to send requests to the Slack API for their names, which seems possible via making GETs to https://slack.com/api/users.info with user IDs.
The problem I have with understanding how to do this is about the token requirement. I know how to do this with my Workspace (just send my workspace's OAuth token as part of the request), but how do will this work with other workspaces that install my app? In other words, how do I get a valid OAuth token for other workspaces that install my app? Am I approaching this incorrectly?