slackapi / deno-slack-sdk

SDK for building Run on Slack apps using Deno
https://api.slack.com/automation
MIT License
158 stars 27 forks source link

Question: How to remove the "Review workflow access" window when clicking a button in a Slack CLI app #219

Closed despolov closed 11 months ago

despolov commented 12 months ago

Hi,

I am currently developing a next-generation platform app using Slack CLI. I have deployed the app in my workspace and currently everytime someone from my team click an action button or triggers a shortcut trigger, this window shows up. image How can this be avoided?

pranith12345 commented 11 months ago

I don't think this window can be avoided . This Window will be shown when a workflow execution is started .

filmaj commented 11 months ago

Hello! Sorry for the late response but I did some digging to find out where this dialog comes from.

Essentially, this is a visual "speedbump" for workflows that rely on what we at Slack call "risky scopes." The idea is that we are double-checking and making very sure an end-user is aware of what kinds of permissions they are granting to a workflow when they use relatively-privacy-sensitive scopes. The list of these scopes we consider privacy-sensitive are:

I think in the screenshot you originally posted, @despolov, it is for the im:history scope (essentially: private message contents).

There is no way to get around this modal (we show it to err on the side of protecting user data), but, hopefully just being aware of this can help you develop and plan your applications and workflows appropriately.

Going to close this issue but if you have more questions or concerns feel free to re-open.