Okta · Capability

Okta API — UserType

Okta API — UserType. 6 operations. Lead operation: UserType. Self-contained Naftiko capability covering one Okta business surface.

Run with Naftiko OktaUserType

What You Can Do

GET
Listusertypes — Fetches all User Types in your org
/v1/api/v1/meta/types/user
POST
Createusertype — Creates a new User Type. A default User Type is automatically created along with your org, and you may add another 9 User Types for a maximum of 10.
/v1/api/v1/meta/types/user
GET
Getusertype — Fetches a User Type by ID. The special identifier `default` may be used to fetch the default User Type.
/v1/api/v1/meta/types/user/{typeid}
PUT
Replaceusertype — Replace an existing User Type
/v1/api/v1/meta/types/user/{typeid}
POST
Updateusertype — Updates an existing User Type
/v1/api/v1/meta/types/user/{typeid}
DELETE
Deleteusertype — Deletes a User Type permanently. This operation is not permitted for the default type, nor for any User Type that has existing users
/v1/api/v1/meta/types/user/{typeid}

MCP Tools

fetches-all-user-types-your

Fetches all User Types in your org

read-only idempotent
creates-new-user-type-default

Creates a new User Type. A default User Type is automatically created along with your org, and you may add another 9 User Types for a maximum of 10.

fetches-user-type-id-special

Fetches a User Type by ID. The special identifier `default` may be used to fetch the default User Type.

read-only idempotent
replace-existing-user-type

Replace an existing User Type

idempotent
updates-existing-user-type

Updates an existing User Type

deletes-user-type-permanently-this

Deletes a User Type permanently. This operation is not permitted for the default type, nor for any User Type that has existing users

idempotent

Capability Spec

okta-usertype.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Okta API — UserType
  description: 'Okta API — UserType. 6 operations. Lead operation: UserType. Self-contained Naftiko capability covering one
    Okta business surface.'
  tags:
  - Okta
  - UserType
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    OKTA_API_KEY: OKTA_API_KEY
capability:
  consumes:
  - type: http
    namespace: okta-usertype
    baseUri: https://your-subdomain.okta.com
    description: Okta API — UserType business capability. Self-contained, no shared references.
    resources:
    - name: api-v1-meta-types-user
      path: /api/v1/meta/types/user
      operations:
      - name: listusertypes
        method: GET
        description: Fetches all User Types in your org
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: createusertype
        method: POST
        description: Creates a new User Type. A default User Type is automatically created along with your org, and you may
          add another 9 User Types for a maximum of 10.
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: api-v1-meta-types-user-typeId
      path: /api/v1/meta/types/user/{typeId}
      operations:
      - name: getusertype
        method: GET
        description: Fetches a User Type by ID. The special identifier `default` may be used to fetch the default User Type.
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: typeId
          in: path
          type: string
          required: true
      - name: replaceusertype
        method: PUT
        description: Replace an existing User Type
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: typeId
          in: path
          type: string
          required: true
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
      - name: updateusertype
        method: POST
        description: Updates an existing User Type
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: typeId
          in: path
          type: string
          required: true
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
      - name: deleteusertype
        method: DELETE
        description: Deletes a User Type permanently. This operation is not permitted for the default type, nor for any User
          Type that has existing users
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: typeId
          in: path
          type: string
          required: true
    authentication:
      type: apikey
      key: Authorization
      value: '{{env.OKTA_API_KEY}}'
      placement: header
  exposes:
  - type: rest
    namespace: okta-usertype-rest
    port: 8080
    description: REST adapter for Okta API — UserType. One Spectral-compliant resource per consumed operation, prefixed with
      /v1.
    resources:
    - path: /v1/api/v1/meta/types/user
      name: api-v1-meta-types-user
      description: REST surface for api-v1-meta-types-user.
      operations:
      - method: GET
        name: listusertypes
        description: Fetches all User Types in your org
        call: okta-usertype.listusertypes
        outputParameters:
        - type: object
          mapping: $.
      - method: POST
        name: createusertype
        description: Creates a new User Type. A default User Type is automatically created along with your org, and you may
          add another 9 User Types for a maximum of 10.
        call: okta-usertype.createusertype
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/api/v1/meta/types/user/{typeid}
      name: api-v1-meta-types-user-typeid
      description: REST surface for api-v1-meta-types-user-typeId.
      operations:
      - method: GET
        name: getusertype
        description: Fetches a User Type by ID. The special identifier `default` may be used to fetch the default User Type.
        call: okta-usertype.getusertype
        with:
          typeId: rest.typeId
        outputParameters:
        - type: object
          mapping: $.
      - method: PUT
        name: replaceusertype
        description: Replace an existing User Type
        call: okta-usertype.replaceusertype
        with:
          typeId: rest.typeId
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
      - method: POST
        name: updateusertype
        description: Updates an existing User Type
        call: okta-usertype.updateusertype
        with:
          typeId: rest.typeId
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
      - method: DELETE
        name: deleteusertype
        description: Deletes a User Type permanently. This operation is not permitted for the default type, nor for any User
          Type that has existing users
        call: okta-usertype.deleteusertype
        with:
          typeId: rest.typeId
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: okta-usertype-mcp
    port: 9090
    transport: http
    description: MCP adapter for Okta API — UserType. One tool per consumed operation, routed inline through this capability's
      consumes block.
    tools:
    - name: fetches-all-user-types-your
      description: Fetches all User Types in your org
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: okta-usertype.listusertypes
      outputParameters:
      - type: object
        mapping: $.
    - name: creates-new-user-type-default
      description: Creates a new User Type. A default User Type is automatically created along with your org, and you may
        add another 9 User Types for a maximum of 10.
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: okta-usertype.createusertype
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: fetches-user-type-id-special
      description: Fetches a User Type by ID. The special identifier `default` may be used to fetch the default User Type.
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: okta-usertype.getusertype
      with:
        typeId: tools.typeId
      outputParameters:
      - type: object
        mapping: $.
    - name: replace-existing-user-type
      description: Replace an existing User Type
      hints:
        readOnly: false
        destructive: false
        idempotent: true
      call: okta-usertype.replaceusertype
      with:
        typeId: tools.typeId
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: updates-existing-user-type
      description: Updates an existing User Type
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: okta-usertype.updateusertype
      with:
        typeId: tools.typeId
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: deletes-user-type-permanently-this
      description: Deletes a User Type permanently. This operation is not permitted for the default type, nor for any User
        Type that has existing users
      hints:
        readOnly: false
        destructive: true
        idempotent: true
      call: okta-usertype.deleteusertype
      with:
        typeId: tools.typeId
      outputParameters:
      - type: object
        mapping: $.