Synchronise users from odoo openErp to couchbase server and gateway

we have i script that copy the data from odoo to couchbase, users are on odoo, the question is what is the best way to have the same users on couchbase odoo and gateway

So when users enter to the application he enter login and password that are the same odoo / coucbase server / gateway ?

any help would be appreciated