Couchbase · Capability

Couchbase Capella App Services Admin API — User Management

Couchbase Capella App Services Admin API — User Management. 5 operations. Lead operation: List all users. Self-contained Naftiko capability covering one Couchbase business surface.

Run with Naftiko CouchbaseUser Management

What You Can Do

GET
Listusers — List all users
/v1/{db}/user
POST
Createuser — Create a user
/v1/{db}/user
GET
Getuser — Get user details
/v1/{db}/user/{username}
PUT
Updateuser — Update a user
/v1/{db}/user/{username}
DELETE
Deleteuser — Delete a user
/v1/{db}/user/{username}

MCP Tools

list-all-users

List all users

read-only idempotent
create-user

Create a user

get-user-details

Get user details

read-only idempotent
update-user

Update a user

idempotent
delete-user

Delete a user

idempotent

Capability Spec

capella-app-services-admin-user-management.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Couchbase Capella App Services Admin API — User Management
  description: 'Couchbase Capella App Services Admin API — User Management. 5 operations. Lead operation: List all users.
    Self-contained Naftiko capability covering one Couchbase business surface.'
  tags:
  - Couchbase
  - User Management
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    COUCHBASE_API_KEY: COUCHBASE_API_KEY
capability:
  consumes:
  - type: http
    namespace: capella-app-services-admin-user-management
    baseUri: https://{appEndpoint}:4985
    description: Couchbase Capella App Services Admin API — User Management business capability. Self-contained, no shared
      references.
    resources:
    - name: db-_user
      path: /{db}/_user/
      operations:
      - name: listusers
        method: GET
        description: List all users
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: createuser
        method: POST
        description: Create a user
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: db-_user-userName
      path: /{db}/_user/{userName}
      operations:
      - name: getuser
        method: GET
        description: Get user details
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: updateuser
        method: PUT
        description: Update a user
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
      - name: deleteuser
        method: DELETE
        description: Delete a user
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    authentication:
      type: basic
      username: '{{env.COUCHBASE_USER}}'
      password: '{{env.COUCHBASE_PASS}}'
  exposes:
  - type: rest
    namespace: capella-app-services-admin-user-management-rest
    port: 8080
    description: REST adapter for Couchbase Capella App Services Admin API — User Management. One Spectral-compliant resource
      per consumed operation, prefixed with /v1.
    resources:
    - path: /v1/{db}/user
      name: db-user
      description: REST surface for db-_user.
      operations:
      - method: GET
        name: listusers
        description: List all users
        call: capella-app-services-admin-user-management.listusers
        outputParameters:
        - type: object
          mapping: $.
      - method: POST
        name: createuser
        description: Create a user
        call: capella-app-services-admin-user-management.createuser
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/{db}/user/{username}
      name: db-user-username
      description: REST surface for db-_user-userName.
      operations:
      - method: GET
        name: getuser
        description: Get user details
        call: capella-app-services-admin-user-management.getuser
        outputParameters:
        - type: object
          mapping: $.
      - method: PUT
        name: updateuser
        description: Update a user
        call: capella-app-services-admin-user-management.updateuser
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
      - method: DELETE
        name: deleteuser
        description: Delete a user
        call: capella-app-services-admin-user-management.deleteuser
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: capella-app-services-admin-user-management-mcp
    port: 9090
    transport: http
    description: MCP adapter for Couchbase Capella App Services Admin API — User Management. One tool per consumed operation,
      routed inline through this capability's consumes block.
    tools:
    - name: list-all-users
      description: List all users
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: capella-app-services-admin-user-management.listusers
      outputParameters:
      - type: object
        mapping: $.
    - name: create-user
      description: Create a user
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: capella-app-services-admin-user-management.createuser
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: get-user-details
      description: Get user details
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: capella-app-services-admin-user-management.getuser
      outputParameters:
      - type: object
        mapping: $.
    - name: update-user
      description: Update a user
      hints:
        readOnly: false
        destructive: false
        idempotent: true
      call: capella-app-services-admin-user-management.updateuser
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: delete-user
      description: Delete a user
      hints:
        readOnly: false
        destructive: true
        idempotent: true
      call: capella-app-services-admin-user-management.deleteuser
      outputParameters:
      - type: object
        mapping: $.