finding out who has access to a given channel

63 views
Skip to first unread message

Seung Chan Lim

unread,
Feb 19, 2015, 10:34:33 PM2/19/15
to mobile-c...@googlegroups.com
I remember there being a REST API to finding out which users (and role?) have access to a given channel. I can't find out where in the docs this is stated.

Could someone help?

thank you

slim

James Nocentini

unread,
Feb 20, 2015, 7:34:27 AM2/20/15
to mobile-c...@googlegroups.com
I'm not sure, i think there's a /:dbname/_dumpchannel/:channelname GET request on the admin port, but I get back a 404 channel not found when the channel exists.
See screenshot below, the user John has access to the 'public_notes' channel.

Jens Alfke

unread,
Feb 20, 2015, 12:28:13 PM2/20/15
to mobile-c...@googlegroups.com

On Feb 20, 2015, at 4:34 AM, James Nocentini <james.n...@gmail.com> wrote:

I'm not sure, i think there's a /:dbname/_dumpchannel/:channelname GET request on the admin port, but I get back a 404 channel not found when the channel exists.

_dumpchannel just logs recent/cached changes on that channel. It’s mostly useful for troubleshooting the _changes feed implementation.
Sounds like in your case there weren’t any recent changes on that channel, so it doesn’t exist in the cache.

I don’t believe there’s a command to find out who has access to a channel, but that sounds useful; feel free to file an issue requesting it!

—Jens

James Nocentini

unread,
Feb 20, 2015, 3:14:26 PM2/20/15
to mobile-c...@googlegroups.com
Ok thanks for the clarification. Filed issue https://github.com/couchbase/sync_gateway/issues/667.

Seung Chan Lim

unread,
Feb 21, 2015, 9:55:05 PM2/21/15
to mobile-c...@googlegroups.com
Yeah, it'd be great if there's a dbname/_channel/id API much like the _user and _role

slim
Reply all
Reply to author
Forward
0 new messages