Zulip Chat Archive
Stream: Zulip meta
Topic: Allowing bots to check group membership
Bryan Gin-ge Chen (Feb 07 2026 at 01:37):
I'm writing a Zulip bot and I'd like to restrict some commands to certain Zulip user groups. However, it seems that the GET /user_groups/<id>/members/<user_id> endpoint returns This endpoint does not accept bot requests.. Searching the issues on GitHub I did find https://github.com/zulip/zulip/issues/19525 with an item "We should look at adjusting the permissions for user groups to allow bots to be members and to access them" but it's unchecked and the issue is closed.
Is the recommended workaround for now to use a user API token for those requests?
Johan Commelin (Feb 07 2026 at 08:10):
I recommend asking on chat.zulipchat.com or pinging some of the zulip folks
Bryan Gin-ge Chen (Feb 10 2026 at 00:54):
I was secretly hoping that the Zulip folks were keeping an eye on threads in this channel, but I guess maybe this got missed over the weekend… I’m not blocked at the moment, so I’ll ping if no one gets to this in a few more days.
Alex Vandiver (Feb 10 2026 at 15:45):
I suspect that's not intentional, and we unintentionally used the @require_member_or_admin decorator instead of @require_non_guest_user.
Alex Vandiver (Feb 10 2026 at 15:46):
I can raise an #issues thread. In general, though, we encourage you to pop on over to chat.zulip.org and do so yourself if you're having problems with the API. :)
Bryan Gin-ge Chen (Feb 10 2026 at 16:08):
Thank you! (For future reference, here's the thread.)
Last updated: Feb 28 2026 at 14:05 UTC