incubator-couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ryan Ramage <ryan.ram...@gmail.com>
Subject Re: Detecting changes to admins/readers on a DB
Date Sun, 27 Feb 2011 18:41:47 GMT
Its not so much about a new user....but a changes to each db security
object that I want to detect.


Will the /_users/_changes feed emit changes when someone does a put to
put to /test/_security ?

On Sun, Feb 27, 2011 at 11:34 AM, Robert Newson <robert.newson@gmail.com> wrote:
> The _users db has a changes feed (/_users/_changes), does that help? :)
>
> B.
>
> On 27 February 2011 12:38, Ryan Ramage <ryan.ramage@gmail.com> wrote:
>> Hi all,
>>
>> Just wondering if there is a way to listen to (like a changes feed)
>> for the security object on a db.
>> I will have a server full of dbs and I want to be able to know when a
>> user has been added (or removed) from a db security object so I can
>> send them
>> an email.
>>
>> A side question would be a query to find all the dbs a user has
>> permissions on. I can brute force it by getting each security object
>> on all dbs, but is there a single query?
>>
>> Cheers
>>
>> Ryan
>>
>

Mime
View raw message