This sample demonstrates how to manage user accounts. $ cc -lcouchbase users.c $ ./a.out couchbase://192.168.1.194 Administrator password 1. Create account 'cbtestuser' with predefined set of roles HTTP status: 200 Server: Couchbase Server Pragma: no-cache Date: Fri, 23 Jun 2017 12:39:52 GMT Content-Type: application/json Content-Length: 2 Cache-Control: no-cache "" 2. Retrieve list of all accounts in the cluster HTTP status: 200 Transfer-Encoding: chunked Server: Couchbase Server Pragma: no-cache Date: Fri, 23 Jun 2017 12:39:52 GMT Content-Type: application/json Cache-Control: no-cache [ { "name": "TestUser", "id": "cbtestuser", "domain": "local", "roles": [ { "role": "bucket_admin", "bucket_name": "default" }, { "role": "cluster_admin" } ] } ] 3. Remove account 'cbtestuser' HTTP status: 200 Server: Couchbase Server Pragma: no-cache Date: Fri, 23 Jun 2017 12:39:52 GMT Content-Type: application/json Content-Length: 2 Cache-Control: no-cache ""