slackapi / deno-slack-sdk

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

[QUESTION] Changing / setting the workflow permissions via CLI #260

Closed mcsescott closed 7 months ago

mcsescott commented 8 months ago

In a next-gen app, when creating a link trigger (for a workflow), is there a way to specify permissions of "who can run and find this workflow" ?

I was looking at the documentation here, and couldn't find a way. My current workaround would be to go into the admin console (https://app.slack.com/manage/TEAMID/integrations/profile/APPID/steps) and change it, but would like to be able to do this programmatically when creating the trigger.

filmaj commented 7 months ago

Hey sorry for the late response! Holidays and all that. Back in action, though!

There is a document called Trigger Management, and specifically Manage access to a trigger within, that is probably what you are looking for.

The key is that gating permissions is not done at the workflow level, but rather at the trigger level: you can control who has access to a trigger that invokes your workflow. You can also create different triggers with different access levels.

filmaj commented 7 months ago

Gonna close this down as I believe that answers your question, but if not, feel free to re-open or open a new issue.