Shows 0 users in http://localhost:4985/_admin/db/db/users whereas showing users in http://localhost:4985/db/_user/

{
“adminInterface”: “:4985”,
“interface”: “0.0.0.0:4984”,
“log”: [""],
“logging”: {
“log_file_path”: “C:/Program Files/Couchbase/Sync Gateway/var/lib/couchbase/logs”,
“console”: {
“log_level”: “debug”,
“log_keys”: ["
"],
“color_enabled”: true
},
“error”: {
“enabled”: true,
“rotation”: {
“max_size”: 100,
“max_age”: 360,
“localtime”: true
}
},
“warn”: {
“enabled”: true,
“rotation”: {
“max_size”: 100,
“max_age”: 180,
“localtime”: true
}
},
“info”: {
“enabled”: true,
“rotation”: {
“max_size”: 100,
“max_age”: 10,
“localtime”: true
}
},
“debug”: {
“enabled”: true,
“rotation”: {
“max_size”: 100,
“max_age”: 10,
“localtime”: true
}
}
},
“databases”: {
“db”: {
“bucket”: “********",
“server”: “couchbases://127.0.0.1:”,
“username”:“sync_gateway”,
“cacertpath”: “C:/Program Files/Couchbase/servercertfiles/ca.pem”,
“certpath”: “C:/Program Files/Couchbase/servercertfiles/clientcertfiles/data.pem”,
“keypath”: “C:/Program Files/Couchbase/servercertfiles/clientcertfiles/data.key”,
“enable_shared_bucket_access”: true,
“import_docs”: “continuous”,
“num_index_replicas”: 0,
“users”: {
“GUEST”: { “disabled”: false, “admin_channels”: ["
”] },
“jens”: {“password”: “letmein”},
“andy”: { “password”: “letmein” }
},
“sync”: `function (doc, oldDoc) {

 channel(doc.TYPE)

}`

}
}

}


Hi,
I am trying to add users in sync gateway but 0 users are being reflected in sync gateway. Can someone explain me why this behavior and how it can be corrected?

@Puja_Sharma, The API you used to get users is the right end point which is this, http://localhost:4985/db/_user/. You can refer to the current rest apis which is supported in sync gateway. https://docs.couchbase.com/sync-gateway/current/admin-rest-api.html#/user
You should not be using http://localhost:4985/_admin/db/db/_users

Wondering how did you know about this end point , http://localhost:4985/_admin/db/db/_users?