@MobDev

When setting explicit roles via the REST API, you should use the 
'admin_roles' property.

For your example try the following:

http://$URL:4985/$DB/_user/$USERNAME
{
"name":"$USERNAME",
"password":"$PASSWORD",
"admin_roles":["allusers"]
}

A users 'roles' property is dynamically generated from a user's explicit 
roles set using 'admin_roles' on the REST API and the roles dynamically 
assigned via the sync function.

Andy

-- 
You received this message because you are subscribed to the Google Groups 
"Couchbase Mobile" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/mobile-couchbase/58cc805b-78fd-428f-ac0e-cab4496544cb%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to