Dooh! And it even says it in the documentation. Probably was working too much 
with _session.

Thanks a lot for the speedy reply.

> On 13. Nov. 2015, at 09:54, Alexander Shorin <[email protected]> wrote:
> 
> user_ctx, not userCtx.
> --
> ,,,^..^,,,
> 
> 
> On Fri, Nov 13, 2015 at 11:51 AM, Alexander Harm <[email protected]> wrote:
>> Hi all,
>> 
>> I seem to be unable to figure out how to replicate between two local 
>> databases. I create the _replicator document as database admin and believe 
>> to have specified the roles correctly in the userCtx. However, I continue to 
>> receive error messages:
>> "unauthorized to access or create database mylocaltarget”
>> 
>> My initial _replicator doc looks like this:
>> {
>>    "_id": "myid",
>>    "continuous": true,
>>    "create_target": true,
>>    "source": "mylocalsource",
>>    "target": "mylocaltarget",
>>    "userCtx": {
>>        "roles": [
>>            "_admin"
>>        ]
>>    }
>> }
>> 
>> Where do I go wrong?
>> 
>> Greetings,
>> 
>> Alexander

Reply via email to