outsideris / slack-invite-automation

A tiny web application to invite a user into your slack team.
MIT License
1.5k stars 885 forks source link

Failed! missing_scope ERROR #146

Open allomorphy opened 4 years ago

allomorphy commented 4 years ago

Hi Folks, neat App,

I installed fine through downloading and executing the docker container.

Then I accessed with a browser and received the error: Failed! missing_scope in the browser.

I cannot access more than this as logs from the container: POST /invite 200 1110.118 ms - 624 GET /css/style.css 304 3.993 ms - - GET /images/bg.jpg 304 1.094 ms - -

In the Oauth & Permissions Page at /oauth? -- which has changed since the manual was written -- I added under User Token Scopes

admin.teams:write

But when I follow up by pressing Please reinstall your app for these changes to take effect .. The page reports: This app can not be installed on this workspace. Apps with this feature are only available to Enterprise customers. We are on the Slack Standard Plan.

Do I have the wrong Oauth permissions option or id an Enterprise Grid a requirement for programatic inviting of Users

Thanks for your help and any advice.

ThomasLachaux commented 3 years ago

Hello ! Any update on this issue ? ;)

kindofone commented 3 years ago

@allomorphy @ThomasLachaux did any of you solve this? I have the same issue.

elimcjah commented 3 years ago

@kindofone @ThomasLachaux @allomorphy, did any of you find an alternative solution?

kindofone commented 3 years ago

@elimcjah I didn’t invest time in trying to solve this. So, nothing on my end 🤷‍♂️

danielmoralesp commented 3 years ago

Hi guys, I'm having the same issue here, an I tried adding a new Scope under User Token Scopes

Screenshot from 2020-12-14 11-59-48

I added the scope "Invite members to a workspace and approve or deny invitation requests" and tried to "Reinstall to Workspace", bu I get the nex request by Slack

Screenshot from 2020-12-14 11-58-36

I don't know if this is the real problem, but if so, Slack is asking for an Enterprise plan to do this. Any suggestions to solve this by the maintainers/owners. Is this the way to solve it? Basically same error as @allomorphy

gionn commented 3 years ago

Looks like that this project is not working anymore for new installs.

Matvey-Kuk commented 3 years ago

Same here, can't use it for the fresh community

davidzollo commented 3 years ago

+1 same issue

bipin-rudder commented 3 years ago

+1 curl -X POST 'https://YOUR-SLACK-TEAM.slack.com/api/users.admin.invite' \ --data 'email=EMAIL&token=TOKEN&set_active=true' \ --compressed is giving : {"ok":false,"error":"missing_scope","needed":"client","provided":"admin,identify"}%

To give the client scope : tried this https call https://slack.com/oauth/authorize?&client_id=CLIENT_ID&team=TEAM_ID&install_redirect=install-on-team&scope=admin+client But this really is not helping as the client scope is not being granted. (Even though the page redirects asking for allow/cancel option). The application scope is not being reflected here: https://api.slack.com/tokens. Only the changes done via UI seems to work and admin.invites.read/write too are not for standard edition slack.

Have tried this quickfix for granting client scope: https://medium.com/@andrewarrow/how-to-get-slack-api-tokens-with-client-scope-e311856ebe9 . Dint work either

ceddybi commented 3 years ago
martinkennelly commented 3 years ago

I think this issue does not go away. If you do not have legacy token, then the OATH token is broken for free slack users. Enterprise slack users may enjoy the benefit of this project only.

tom-geraghty commented 3 years ago

Same issue - "This app can not be installed on this workspace. Apps with this feature are only available to Enterprise customers." image

cedricve commented 3 years ago

Just tried, doesnt work indeed.

sheidaei commented 3 years ago

Did not work for me either. I lost the legacy token too.

kms0219kms commented 3 years ago

Did not work for me either. I can't make the legacy token too.

sandhuharjodh commented 3 years ago

Any updates?

kms0219kms commented 3 years ago

No. This bug is not this application. Slack's bugs.

StefanWallin commented 2 years ago

I'm using this as a workaround: https://github.com/outsideris/slack-invite-automation/pull/149

mick-zelta commented 1 year ago

Having this same issue but getting;

Invalid permissions requested invalid_scope

when trying to add "admin.apps:read" as a User OAuth scope. Incredibly frustrating? I am the workspace and App admin, so can't understand why I still have the error?

jlconrad3 commented 1 year ago

I'm having the same issue. No previous suggestions seem to help. Anyone know how to fix this?