automation-anywhere · Capability

Automation Anywhere Control Room API — Roles

Automation Anywhere Control Room API — Roles. 5 operations. Lead operation: Create a role. Self-contained Naftiko capability covering one Automation Anywhere business surface.

Run with Naftiko Automation AnywhereRoles

What You Can Do

POST
Createrole — Create a role
/v1/v2/usermanagement/roles
POST
Listroles — List roles
/v1/v2/usermanagement/roles/list
GET
Getrole — Get role by ID
/v1/v2/usermanagement/roles/{id}
PUT
Updaterole — Update a role
/v1/v2/usermanagement/roles/{id}
DELETE
Deleterole — Delete a role
/v1/v2/usermanagement/roles/{id}

MCP Tools

create-role

Create a role

list-roles

List roles

read-only
get-role-id

Get role by ID

read-only idempotent
update-role

Update a role

idempotent
delete-role

Delete a role

idempotent

Capability Spec

control-room-roles.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Automation Anywhere Control Room API — Roles
  description: 'Automation Anywhere Control Room API — Roles. 5 operations. Lead operation: Create a role. Self-contained
    Naftiko capability covering one Automation Anywhere business surface.'
  tags:
  - Automation Anywhere
  - Roles
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    AUTOMATION_ANYWHERE_API_KEY: AUTOMATION_ANYWHERE_API_KEY
capability:
  consumes:
  - type: http
    namespace: control-room-roles
    baseUri: https://{controlRoomUrl}
    description: Automation Anywhere Control Room API — Roles business capability. Self-contained, no shared references.
    resources:
    - name: v2-usermanagement-roles
      path: /v2/usermanagement/roles
      operations:
      - name: createrole
        method: POST
        description: Create a role
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: v2-usermanagement-roles-list
      path: /v2/usermanagement/roles/list
      operations:
      - name: listroles
        method: POST
        description: List roles
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: v2-usermanagement-roles-id
      path: /v2/usermanagement/roles/{id}
      operations:
      - name: getrole
        method: GET
        description: Get role by ID
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: updaterole
        method: PUT
        description: Update a role
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
      - name: deleterole
        method: DELETE
        description: Delete a role
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    authentication:
      type: bearer
      token: '{{env.AUTOMATION_ANYWHERE_API_KEY}}'
  exposes:
  - type: rest
    namespace: control-room-roles-rest
    port: 8080
    description: REST adapter for Automation Anywhere Control Room API — Roles. One Spectral-compliant resource per consumed
      operation, prefixed with /v1.
    resources:
    - path: /v1/v2/usermanagement/roles
      name: v2-usermanagement-roles
      description: REST surface for v2-usermanagement-roles.
      operations:
      - method: POST
        name: createrole
        description: Create a role
        call: control-room-roles.createrole
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/v2/usermanagement/roles/list
      name: v2-usermanagement-roles-list
      description: REST surface for v2-usermanagement-roles-list.
      operations:
      - method: POST
        name: listroles
        description: List roles
        call: control-room-roles.listroles
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/v2/usermanagement/roles/{id}
      name: v2-usermanagement-roles-id
      description: REST surface for v2-usermanagement-roles-id.
      operations:
      - method: GET
        name: getrole
        description: Get role by ID
        call: control-room-roles.getrole
        outputParameters:
        - type: object
          mapping: $.
      - method: PUT
        name: updaterole
        description: Update a role
        call: control-room-roles.updaterole
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
      - method: DELETE
        name: deleterole
        description: Delete a role
        call: control-room-roles.deleterole
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: control-room-roles-mcp
    port: 9090
    transport: http
    description: MCP adapter for Automation Anywhere Control Room API — Roles. One tool per consumed operation, routed inline
      through this capability's consumes block.
    tools:
    - name: create-role
      description: Create a role
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: control-room-roles.createrole
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: list-roles
      description: List roles
      hints:
        readOnly: true
        destructive: false
        idempotent: false
      call: control-room-roles.listroles
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: get-role-id
      description: Get role by ID
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: control-room-roles.getrole
      outputParameters:
      - type: object
        mapping: $.
    - name: update-role
      description: Update a role
      hints:
        readOnly: false
        destructive: false
        idempotent: true
      call: control-room-roles.updaterole
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: delete-role
      description: Delete a role
      hints:
        readOnly: false
        destructive: true
        idempotent: true
      call: control-room-roles.deleterole
      outputParameters:
      - type: object
        mapping: $.