ErikKalkoken / slackApiDoc

Documentation of undocumented Slack API methods
MIT License
409 stars 60 forks source link

users.admin.invite - API error #41

Closed sanjaykumar2338 closed 6 years ago

sanjaykumar2338 commented 6 years ago

Hi,

I am getting this error while using this API.

Error: {"ok":false,"error":"no_perms"}

I am sending a test token, email and channel name properly.

The error does not list API error log documentation.

I use this WordPress plugin https://www.wpslacksync.com/.

Although I also trying to hit the API with token, email and channel directly in the browser HTTP. Same error encounter Error: {"ok":false,"error":"no_perms"}

Thanks

ErikKalkoken commented 6 years ago

Could be related to the role of your user. Please double-check that the user that is creating the legacy token has the admin or owner role. It will not work for "normal" users.