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

Create users.admin.invite API doc #30

Closed
Neil-Ni opened this Issue Jul 2, 2015 · 25 comments

Comments

Projects
None yet
@Neil-Ni

Neil-Ni commented Jul 2, 2015

I came across some usage for /api/users.admin.invite but I wasn't able to find the related doc on this api endpoint.

For example to invite a single-channel-access guest we could do:

POST /api/users.admin.invite
{
    channels: channel_name
    token: token
    set_active: true
    email: email
    ultra_restricted: 1
}
@jtatum

This comment has been minimized.

Show comment
Hide comment
@jtatum

jtatum Jul 21, 2015

It is an undocumented endpoint. Slack does not document it intentionally. See e.g. https://twitter.com/slackapi/status/570323011338772480

jtatum commented Jul 21, 2015

It is an undocumented endpoint. Slack does not document it intentionally. See e.g. https://twitter.com/slackapi/status/570323011338772480

@dblock

This comment has been minimized.

Show comment
Hide comment
@dblock

dblock Aug 27, 2015

Slack said they will not be updating that repo until they hire someone. We don't have to wait. I've pulled JSON files from https://github.com/slackhq/slack-api-docs into https://github.com/dblock/slack-api-ref, which I intend to maintain and kept JSON files only. We'll accept schema for undocumented methods, please feel free to contribute!

dblock commented Aug 27, 2015

Slack said they will not be updating that repo until they hire someone. We don't have to wait. I've pulled JSON files from https://github.com/slackhq/slack-api-docs into https://github.com/dblock/slack-api-ref, which I intend to maintain and kept JSON files only. We'll accept schema for undocumented methods, please feel free to contribute!

@mccreath

This comment has been minimized.

Show comment
Hide comment
@mccreath

mccreath Sep 3, 2015

Member

Hello! The above comment from jtatum is correct. It is undocumented because it's still under development. If you use it, it is entirely possible that we'll make a change in the future that will change its behavior. We have started work on some user management methods that will be documented and supported. Don't have have a firm timeline for their release, but we recognize the need for them.

If you have further questions, feel free to send them to feedback@slack.com. We're going to continue monitoring the issues here, but response time will generally be faster at that email address.

Member

mccreath commented Sep 3, 2015

Hello! The above comment from jtatum is correct. It is undocumented because it's still under development. If you use it, it is entirely possible that we'll make a change in the future that will change its behavior. We have started work on some user management methods that will be documented and supported. Don't have have a firm timeline for their release, but we recognize the need for them.

If you have further questions, feel free to send them to feedback@slack.com. We're going to continue monitoring the issues here, but response time will generally be faster at that email address.

@mccreath mccreath closed this Sep 3, 2015

vernaillen referenced this issue in vernaillen/simple-slack-api Sep 22, 2015

@weisjohn

This comment has been minimized.

Show comment
Hide comment
@weisjohn

weisjohn Feb 13, 2016

@mccreath any updates on the documentation for creating users?

weisjohn commented Feb 13, 2016

@mccreath any updates on the documentation for creating users?

@mccreath

This comment has been minimized.

Show comment
Hide comment
@mccreath

mccreath Feb 20, 2016

Member

@weisjohn Not yet. Still some issues to work out around user management in general.

Member

mccreath commented Feb 20, 2016

@weisjohn Not yet. Still some issues to work out around user management in general.

@mattkast

This comment has been minimized.

Show comment
Hide comment
@mattkast

mattkast Apr 4, 2016

@mccreath Any updates on this??

mattkast commented Apr 4, 2016

@mccreath Any updates on this??

@mccreath

This comment has been minimized.

Show comment
Hide comment
@mccreath

mccreath Apr 4, 2016

Member

@mattkast Afraid not!

Member

mccreath commented Apr 4, 2016

@mattkast Afraid not!

@derickbailey

This comment has been minimized.

Show comment
Hide comment
@derickbailey

derickbailey Apr 15, 2016

i'd really like to see this re-opened and officially supported.

i'm currently building an online community for javascript and i want to automate the invites for new members of my community, to my private slack for the community.

without official support for this, i'm stuck doing things manually :(

derickbailey commented Apr 15, 2016

i'd really like to see this re-opened and officially supported.

i'm currently building an online community for javascript and i want to automate the invites for new members of my community, to my private slack for the community.

without official support for this, i'm stuck doing things manually :(

@mccreath

This comment has been minimized.

Show comment
Hide comment
@mccreath

mccreath Apr 15, 2016

Member

Hi, @derickbailey. We working on a few things that will simplify the invite process. Stay tuned!

We appreciate the feedback, and I'd encourage you to send this and any other platform to feedback@slack.com as well. We are listening to it.

Member

mccreath commented Apr 15, 2016

Hi, @derickbailey. We working on a few things that will simplify the invite process. Stay tuned!

We appreciate the feedback, and I'd encourage you to send this and any other platform to feedback@slack.com as well. We are listening to it.

dherbst referenced this issue in dherbst/slack-invite-script May 20, 2016

@jeffmurchison

This comment has been minimized.

Show comment
Hide comment
@jeffmurchison

jeffmurchison Aug 26, 2016

Any update on user management?

jeffmurchison commented Aug 26, 2016

Any update on user management?

@ClydeDroid

This comment has been minimized.

Show comment
Hide comment
@ClydeDroid

ClydeDroid Nov 16, 2016

For anyone still looking for information on this, @ErikKalkoken has a list of the undocumented API methods here.

ClydeDroid commented Nov 16, 2016

For anyone still looking for information on this, @ErikKalkoken has a list of the undocumented API methods here.

@dblock

This comment has been minimized.

Show comment
Hide comment
@dblock

dblock Nov 16, 2016

I opened ErikKalkoken/slackApiDoc#5. It would be great to contribute these in json format in some new folder in slack-api-ref and make them available in the auto-generated code in the ruby client.

dblock commented Nov 16, 2016

I opened ErikKalkoken/slackApiDoc#5. It would be great to contribute these in json format in some new folder in slack-api-ref and make them available in the auto-generated code in the ruby client.

@Unders0n

This comment has been minimized.

Show comment
Hide comment
@Unders0n

Unders0n Jul 21, 2017

Hello, is there any updates on this issue?
We're creating bot and we want it to have ability to add users. I've tried users.admin.invite method using bot oauth token (both app token, oath and bot tokens in "permissions" tab. I've tried all scopes, including team admin , no success, still getting "missing_scope" exception. Only workaround is working is i get old deprecated token of our team admin and pasted it in authorisation. What is the recommended way to solve our issue?

Unders0n commented Jul 21, 2017

Hello, is there any updates on this issue?
We're creating bot and we want it to have ability to add users. I've tried users.admin.invite method using bot oauth token (both app token, oath and bot tokens in "permissions" tab. I've tried all scopes, including team admin , no success, still getting "missing_scope" exception. Only workaround is working is i get old deprecated token of our team admin and pasted it in authorisation. What is the recommended way to solve our issue?

@ErikKalkoken

This comment has been minimized.

Show comment
Hide comment
@ErikKalkoken

ErikKalkoken Jul 22, 2017

@Unders0n the API method users.admin.invite works, but you will need an access token with admin rights to use it. A bot access token will most likely not work, since it is limited by design. Instead of using the "test token" you can also use the "full" access token that is created together with the bot access token during installation of your Slack app. However, I am pretty sure that your Slack app has to be installed by someone with the admin role for this work.
Please also see the current documentation of this method here: users.admin.invite

ErikKalkoken commented Jul 22, 2017

@Unders0n the API method users.admin.invite works, but you will need an access token with admin rights to use it. A bot access token will most likely not work, since it is limited by design. Instead of using the "test token" you can also use the "full" access token that is created together with the bot access token during installation of your Slack app. However, I am pretty sure that your Slack app has to be installed by someone with the admin role for this work.
Please also see the current documentation of this method here: users.admin.invite

@Unders0n

This comment has been minimized.

Show comment
Hide comment
@Unders0n

Unders0n Jul 23, 2017

@ErikKalkoken , yes thanks, we're using exactly this aproach. Just for info: full auth key of app not working either, even when installed by admin (atleast it was reinstalled by admin, we haven't tested brand new installation)
We're thinking of another issue now: i mentioned that we cant explicitly choose username for user. And we also can't configure some callback for this operation. I'm telling this 'cos without that i dont have ideas how we can fully automate this process, saving relevant info to DB.

Unders0n commented Jul 23, 2017

@ErikKalkoken , yes thanks, we're using exactly this aproach. Just for info: full auth key of app not working either, even when installed by admin (atleast it was reinstalled by admin, we haven't tested brand new installation)
We're thinking of another issue now: i mentioned that we cant explicitly choose username for user. And we also can't configure some callback for this operation. I'm telling this 'cos without that i dont have ideas how we can fully automate this process, saving relevant info to DB.

@soundsgoodsofar

This comment has been minimized.

Show comment
Hide comment
@soundsgoodsofar

soundsgoodsofar Aug 23, 2017

+1. Our workaround for supporting slack communication is to create private channels for each thread on our platform, and then emulate messages having come from the other user. This works to some extent, but it means that the party without a company slack account can't use slack as an actual guest.

soundsgoodsofar commented Aug 23, 2017

+1. Our workaround for supporting slack communication is to create private channels for each thread on our platform, and then emulate messages having come from the other user. This works to some extent, but it means that the party without a company slack account can't use slack as an actual guest.

@tansaku

This comment has been minimized.

Show comment
Hide comment
@tansaku

tansaku Nov 2, 2017

this endpoint seems to have stopped working for us recently :-(

tansaku commented Nov 2, 2017

this endpoint seems to have stopped working for us recently :-(

@ErikKalkoken

This comment has been minimized.

Show comment
Hide comment
@ErikKalkoken

ErikKalkoken Nov 2, 2017

@tansaku no, still works fine. Checked again just now. So the issue must lie somewhere else. Also check with this the respective documentation with regards to correct token etc.

ErikKalkoken commented Nov 2, 2017

@tansaku no, still works fine. Checked again just now. So the issue must lie somewhere else. Also check with this the respective documentation with regards to correct token etc.

@tansaku

This comment has been minimized.

Show comment
Hide comment
@tansaku

tansaku Nov 3, 2017

thanks @ErikKalkoken good to know - we did just renew our token - we're posting to Slack via the documented API using it - I wonder what can be going on: here's our code:

https://github.com/AgileVentures/WebsiteOne/blob/develop/app/jobs/slack_invite_job.rb

tansaku commented Nov 3, 2017

thanks @ErikKalkoken good to know - we did just renew our token - we're posting to Slack via the documented API using it - I wonder what can be going on: here's our code:

https://github.com/AgileVentures/WebsiteOne/blob/develop/app/jobs/slack_invite_job.rb

@ErikKalkoken

This comment has been minimized.

Show comment
Hide comment
@ErikKalkoken

ErikKalkoken Nov 3, 2017

@tansaku sorry I don't know this programming language. But I would suggest opening a question about your problem on Stackoverflow.com. Sure you find someone there who can help you.

ErikKalkoken commented Nov 3, 2017

@tansaku sorry I don't know this programming language. But I would suggest opening a question about your problem on Stackoverflow.com. Sure you find someone there who can help you.

@webdif

This comment has been minimized.

Show comment
Hide comment
@webdif

webdif Feb 7, 2018

Any news on this?

webdif commented Feb 7, 2018

Any news on this?

@ErikKalkoken

This comment has been minimized.

Show comment
Hide comment
@ErikKalkoken

ErikKalkoken Feb 7, 2018

the endpoint works fine. We use it every day. Those issues have most likely other causes.

ErikKalkoken commented Feb 7, 2018

the endpoint works fine. We use it every day. Those issues have most likely other causes.

@ErikKalkoken

This comment has been minimized.

Show comment
Hide comment
@ErikKalkoken

ErikKalkoken Feb 7, 2018

If you have any question / issue with this endpoint, please open a new issue at https://github.com/ErikKalkoken/slackApiDoc

this issue has been closed long ago

ErikKalkoken commented Feb 7, 2018

If you have any question / issue with this endpoint, please open a new issue at https://github.com/ErikKalkoken/slackApiDoc

this issue has been closed long ago

@intel352

This comment has been minimized.

Show comment
Hide comment
@intel352

intel352 May 10, 2018

looks like @mccreath is still active for Slack, maybe he'll take pity and respond with an update, as his last update was almost 2 years ago.

intel352 commented May 10, 2018

looks like @mccreath is still active for Slack, maybe he'll take pity and respond with an update, as his last update was almost 2 years ago.

@dblock

This comment has been minimized.

Show comment
Hide comment
@dblock

dblock May 10, 2018

Note that there's a new project, https://github.com/slackapi/slack-api-specs that seems to supersede this at this point, cc: @Roach maybe time to do something about this one?

dblock commented May 10, 2018

Note that there's a new project, https://github.com/slackapi/slack-api-specs that seems to supersede this at this point, cc: @Roach maybe time to do something about this one?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment