Apache Ranger · Capability

Apache Ranger REST API — Users

Apache Ranger REST API — Users. 2 operations. Lead operation: Apache Ranger List Users. Self-contained Naftiko capability covering one Apache Ranger business surface.

Run with Naftiko Apache RangerUsers

What You Can Do

GET
Listusers — Apache Ranger List Users
/v1/xusers/users
POST
Createuser — Apache Ranger Create User
/v1/xusers/users

MCP Tools

apache-ranger-list-users

Apache Ranger List Users

read-only idempotent
apache-ranger-create-user

Apache Ranger Create User

Capability Spec

rest-users.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Apache Ranger REST API — Users
  description: 'Apache Ranger REST API — Users. 2 operations. Lead operation: Apache Ranger List Users. Self-contained Naftiko
    capability covering one Apache Ranger business surface.'
  tags:
  - Apache Ranger
  - Users
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    APACHE_RANGER_API_KEY: APACHE_RANGER_API_KEY
capability:
  consumes:
  - type: http
    namespace: rest-users
    baseUri: https://ranger.example.com/service
    description: Apache Ranger REST API — Users business capability. Self-contained, no shared references.
    resources:
    - name: xusers-users
      path: /xusers/users
      operations:
      - name: listusers
        method: GET
        description: Apache Ranger List Users
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: createuser
        method: POST
        description: Apache Ranger Create User
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    authentication:
      type: basic
      username: '{{env.APACHE_RANGER_USER}}'
      password: '{{env.APACHE_RANGER_PASS}}'
  exposes:
  - type: rest
    namespace: rest-users-rest
    port: 8080
    description: REST adapter for Apache Ranger REST API — Users. One Spectral-compliant resource per consumed operation,
      prefixed with /v1.
    resources:
    - path: /v1/xusers/users
      name: xusers-users
      description: REST surface for xusers-users.
      operations:
      - method: GET
        name: listusers
        description: Apache Ranger List Users
        call: rest-users.listusers
        outputParameters:
        - type: object
          mapping: $.
      - method: POST
        name: createuser
        description: Apache Ranger Create User
        call: rest-users.createuser
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: rest-users-mcp
    port: 9090
    transport: http
    description: MCP adapter for Apache Ranger REST API — Users. One tool per consumed operation, routed inline through this
      capability's consumes block.
    tools:
    - name: apache-ranger-list-users
      description: Apache Ranger List Users
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: rest-users.listusers
      outputParameters:
      - type: object
        mapping: $.
    - name: apache-ranger-create-user
      description: Apache Ranger Create User
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: rest-users.createuser
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.