You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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.
The text was updated successfully, but these errors were encountered: