Can't see accounts created from Sync Gateway admin interface in Couchbase Server admin web UI


#1

Can’t see accounts created from Sync Gateway admin interface in Couchbase Server admin web UI.

curl -vX PUT “http://localhost:4985/db/_user/john” -H “accept: application/json” -H “Content-Type: application/json” -d ‘{“name”: “john”, “password”: “password”}’

< HTTP/1.1 201 Created
< Server: Couchbase Sync Gateway/2.1.1

But when I go to

http://localhost:8091/ui/index.html#!/security/userRoles

I don’t see user “john” here - I see only user that I have created before (this user is readonly admin for sync_gateway).


#2

Hi Artur,

Sync Gateway users and Couchbase Server users are separate, and typically have different access patterns.

You can think of Sync Gateway users as people who use your app, and Couchbase Server users as accounts that have access to your backing database, such as database administrators, developers, and applications.


#3

Hi, thank you. I think it should be clearly described in docs as it’s not obvious. Sync gateway can perform both admin and app tasks, and server have mechanic to restrict access of the user to the bucket as application access so developer think it’s the same


#4

Thank you for the feedback. We’ll take this on board, and we have plans in upcoming releases to improve the user experience of configuring Sync Gateway and its users.