IBM WebSphere · Capability

WebSphere Application Server Admin REST API — Security

WebSphere Application Server Admin REST API — Security. 2 operations. Lead operation: List Security Roles. Self-contained Naftiko capability covering one Websphere business surface.

Run with Naftiko WebsphereSecurity

What You Can Do

GET
Listroles — List Security Roles
/v1/security/roles
GET
Listusers — List Security Users
/v1/security/users

MCP Tools

list-security-roles

List Security Roles

read-only idempotent
list-security-users

List Security Users

read-only idempotent

Capability Spec

admin-rest-security.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: WebSphere Application Server Admin REST API — Security
  description: 'WebSphere Application Server Admin REST API — Security. 2 operations. Lead operation: List Security Roles.
    Self-contained Naftiko capability covering one Websphere business surface.'
  tags:
  - Websphere
  - Security
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    WEBSPHERE_API_KEY: WEBSPHERE_API_KEY
capability:
  consumes:
  - type: http
    namespace: admin-rest-security
    baseUri: https://localhost:9443/ibm/api
    description: WebSphere Application Server Admin REST API — Security business capability. Self-contained, no shared references.
    resources:
    - name: security-roles
      path: /security/roles
      operations:
      - name: listroles
        method: GET
        description: List Security Roles
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: security-users
      path: /security/users
      operations:
      - name: listusers
        method: GET
        description: List Security Users
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: pattern
          in: query
          type: string
          description: Search pattern for user names
        - name: limit
          in: query
          type: integer
          description: Maximum number of users to return
    authentication:
      type: apikey
      key: LtpaToken2
      value: '{{env.WEBSPHERE_API_KEY}}'
      placement: cookie
  exposes:
  - type: rest
    namespace: admin-rest-security-rest
    port: 8080
    description: REST adapter for WebSphere Application Server Admin REST API — Security. One Spectral-compliant resource
      per consumed operation, prefixed with /v1.
    resources:
    - path: /v1/security/roles
      name: security-roles
      description: REST surface for security-roles.
      operations:
      - method: GET
        name: listroles
        description: List Security Roles
        call: admin-rest-security.listroles
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/security/users
      name: security-users
      description: REST surface for security-users.
      operations:
      - method: GET
        name: listusers
        description: List Security Users
        call: admin-rest-security.listusers
        with:
          pattern: rest.pattern
          limit: rest.limit
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: admin-rest-security-mcp
    port: 9090
    transport: http
    description: MCP adapter for WebSphere Application Server Admin REST API — Security. One tool per consumed operation,
      routed inline through this capability's consumes block.
    tools:
    - name: list-security-roles
      description: List Security Roles
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: admin-rest-security.listroles
      outputParameters:
      - type: object
        mapping: $.
    - name: list-security-users
      description: List Security Users
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: admin-rest-security.listusers
      with:
        pattern: tools.pattern
        limit: tools.limit
      outputParameters:
      - type: object
        mapping: $.