Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Limit certain interactions to Slack users with the Admin role #27

Open
jcpsantiago opened this issue May 15, 2023 · 0 comments
Open

Limit certain interactions to Slack users with the Admin role #27

jcpsantiago opened this issue May 15, 2023 · 0 comments
Assignees
Labels
question Further information is requested

Comments

@jcpsantiago
Copy link
Owner

jcpsantiago commented May 15, 2023

The app shouldn't allow all users from performing certain actions e.g. creating archives of private channels.

Slack users have roles, and we should make use of them: https://slack.com/help/articles/360018112273-Types-of-roles-in-Slack

The user type has some useful fields (https://api.slack.com/types/user):

  • is_admin
  • is_owner
  • is_primary_owner

these let us know what is user's role within the slack workspace, and we can use them to determine if a user is allowed certain actions.

We could also restrict users based on whether they originally created the channel, or not.
This would add more flexibility in the "archiving private channel" scenario, by allowing the creator to setup archives, in addition to the workspace admins/owners.

@jcpsantiago jcpsantiago added enhancement New feature or request question Further information is requested and removed enhancement New feature or request labels May 15, 2023
@jcpsantiago jcpsantiago self-assigned this May 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
Status: Todo
Development

No branches or pull requests

1 participant