ErikKalkoken / slackApiDoc

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

users.admin.invite optional params don't work #40

Closed Yankovsky closed 6 years ago

Yankovsky commented 6 years ago

I've tried channels, first_name and last_name params from doc, but they don't work. User still need to enter full name and display name on registration screen and after registration user has only one default channel. Probably slack team changed something.

Yankovsky commented 6 years ago

Btw, thanks for your work!

ErikKalkoken commented 6 years ago

Nope, I can confirm that those API parameters still work. Nothing has changed.

I tested the channels, the first_name and last_name parameter and they work as documented. e.g. the new user auto-joined all specified additional channels.

So if it does not work for you, the root cause must lie somewhere else.

ErikKalkoken commented 6 years ago

Btw. if you like to get help with your code please post your issue on https://stackoverflow.com/. I will be happy to help you there get your code running.

Yankovsky commented 6 years ago

@ErikKalkoken hmm, ok, I'll try to make them work. Thank you!

Yankovsky commented 6 years ago

Ok, I found the problem. First call to method saves additional data about invited user. If you don't specify first_name, last_name or channels on first call, and then send another request with that data, it will be ignored.

ErikKalkoken commented 6 years ago

yes, good point. you can send an invite to an email address only once. Unless you remove the invite again before the recipient uses the link. then you can sent it again.

Maybe something to add to the documentation...

soichih commented 5 years ago

I've been trying to set first_name / last_name but I can't seem to get it to work.. Are you sure this is still working?

ErikKalkoken commented 5 years ago

You are right. those indeed seam not to work anymore. But I just found out that real_name works and is not yet documented. I will update the API doc.

Thanks for letting me know!

soichih commented 5 years ago

Thanks. real_name works! May I ask how you are knowing this?

ErikKalkoken commented 5 years ago

I just use https://getnada.com/ to generate new emails and then try it out with my private workspace. I guessed real_name was the one, because that is how its also called in the user object.