Skip to content
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

Getting UserId using REST API #6663

Closed
LiorHaim opened this issue Apr 12, 2017 · 1 comment
Closed

Getting UserId using REST API #6663

LiorHaim opened this issue Apr 12, 2017 · 1 comment

Comments

@LiorHaim
Copy link
Contributor

LiorHaim commented Apr 12, 2017

Rocket.Chat Version: 0.49

Hey all,
I'm trying to use the REST API to invite/remove users from groups and channels. In order to do that (using the channels/groups.kick and channels/groups.invite APIs), I need to send the userId.

I hold the usernames of all the users, but not the userId. The only way I see at the moment is to use the users.info API which retrives ALL the users information, and then I need to filter using the username - which seems too much work for just getting the userId of a specific user.

Is there any other better way to get the userId by using the username?

Thanks.

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

No branches or pull requests

3 participants