Search code examples
slackslack-api

Why does my Slack app not work properly when installed by a non-admin?


We are working on a Slack app that doesn't work well when it is installed by a non-admin user. For example, if we invite a user to a channel using channels.invite we get a not_in_channel error (of course, when the installer user is not in the channel), what doesn't happen when the installer is an admin.

I see each team can configure who can install apps, but I don't see any option to indicate that the app must be installed by an admin user and throw an error if you aren't and admin of the team your are trying to install the app into. Is there a way to do that?


Solution

  • I think I found the answer. We need to ask for the admin scope.