We integrate stackstorm with slack, and we are able to get the user name with action_context.api_user
and assign the user name as the value of one action parameter. Is there a way to get user email address
associated with this user? Thanks!
This site is in read only mode. Please continue to browse, but replying, likes, and other actions are disabled for now.
⚠️ We've moved!
Hi there!
To reduce project dependency on 3rd party paid services the StackStorm TSC has decided to move the Q/A from this forum to Github Discussions. This will make user experience better integrated with the native Github flow, as well as the questions closer to the community where they can provide answers.
Use 🔗 Github Discussions to ask your questions.
As far as I’m aware, there is not really a good way to do this with ChatOps. ChatOps is about conversation driven development, so ChatOps aliases are meant to post back into Slack if they need to communicate back to the user.
However, you can still get the user’s email address:
- Install the Slack pack
- Run a workflow action via the ChatOps alias
- Add a step in the workflow that searches Slack for the user with the username equal to
{{ action_context.api_user }}
and grabs the email address for that user
Thanks for your response, we will investigate the solution as you suggested!