SAS Institute · Capability

SAS Viya REST API — Identities

SAS Viya REST API — Identities. 2 operations. Lead operation: List Users. Self-contained Naftiko capability covering one Sas business surface.

Run with Naftiko SasIdentities

What You Can Do

GET
Listusers — List Users
/v1/identities/users
GET
Getuser — Get User
/v1/identities/users/{id}

MCP Tools

list-users

List Users

read-only idempotent
get-user

Get User

read-only idempotent

Capability Spec

viya-rest-identities.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: SAS Viya REST API — Identities
  description: 'SAS Viya REST API — Identities. 2 operations. Lead operation: List Users. Self-contained Naftiko capability
    covering one Sas business surface.'
  tags:
  - Sas
  - Identities
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    SAS_API_KEY: SAS_API_KEY
capability:
  consumes:
  - type: http
    namespace: viya-rest-identities
    baseUri: https://{viya-host}
    description: SAS Viya REST API — Identities business capability. Self-contained, no shared references.
    resources:
    - name: identities-users
      path: /identities/users
      operations:
      - name: listusers
        method: GET
        description: List Users
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: identities-users-id
      path: /identities/users/{id}
      operations:
      - name: getuser
        method: GET
        description: Get User
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: id
          in: path
          type: string
          required: true
    authentication:
      type: bearer
      token: '{{env.SAS_API_KEY}}'
  exposes:
  - type: rest
    namespace: viya-rest-identities-rest
    port: 8080
    description: REST adapter for SAS Viya REST API — Identities. One Spectral-compliant resource per consumed operation,
      prefixed with /v1.
    resources:
    - path: /v1/identities/users
      name: identities-users
      description: REST surface for identities-users.
      operations:
      - method: GET
        name: listusers
        description: List Users
        call: viya-rest-identities.listusers
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/identities/users/{id}
      name: identities-users-id
      description: REST surface for identities-users-id.
      operations:
      - method: GET
        name: getuser
        description: Get User
        call: viya-rest-identities.getuser
        with:
          id: rest.id
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: viya-rest-identities-mcp
    port: 9090
    transport: http
    description: MCP adapter for SAS Viya REST API — Identities. One tool per consumed operation, routed inline through this
      capability's consumes block.
    tools:
    - name: list-users
      description: List Users
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: viya-rest-identities.listusers
      outputParameters:
      - type: object
        mapping: $.
    - name: get-user
      description: Get User
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: viya-rest-identities.getuser
      with:
        id: tools.id
      outputParameters:
      - type: object
        mapping: $.