APIs.io Engineering Platform AWS Identity and Access Management — #Action=AttachUserPolicy

APIs.io Engineering Platform AWS Identity and Access Management — #Action=AttachUserPolicy. 2 operations. Lead operation: #Action=AttachUserPolicy. Self-contained Naftiko capability covering one Engineering Platform business surface.

Run with Naftiko Engineering Platform#Action=AttachUserPolicy

What You Can Do

GET
Getattachuserpolicy

Attaches the specified managed policy to the specified user.

You use this operation to attach a managed policy to a user. To embed an inline policy in a user, use PutUserPolicy.

As a best practice, you can val

/v1/action-attachuserpolicy
POST
Postattachuserpolicy

Attaches the specified managed policy to the specified user.

You use this operation to attach a managed policy to a user. To embed an inline policy in a user, use PutUserPolicy.

As a best practice, you can val

/v1/action-attachuserpolicy

MCP Tools

p-attaches-specified-managed-policy-specified

Attaches the specified managed policy to the specified user.

You use this operation to attach a managed policy to a user. To embed an inline policy in a user, use PutUserPolicy.

As a best practice, you can val

read-only idempotent
p-attaches-specified-managed-policy-specified-2

Attaches the specified managed policy to the specified user.

You use this operation to attach a managed policy to a user. To embed an inline policy in a user, use PutUserPolicy.

As a best practice, you can val

Capability Spec

aws-iam-action-attachuserpolicy.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: 'APIs.io Engineering Platform AWS Identity and Access Management — #Action=AttachUserPolicy'
  description: 'APIs.io Engineering Platform AWS Identity and Access Management — #Action=AttachUserPolicy. 2 operations.
    Lead operation: #Action=AttachUserPolicy. Self-contained Naftiko capability covering one Engineering Platform business
    surface.'
  tags:
  - Engineering Platform
  - '#Action=AttachUserPolicy'
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    ENGINEERING_PLATFORM_API_KEY: ENGINEERING_PLATFORM_API_KEY
capability:
  consumes:
  - type: http
    namespace: aws-iam-action-attachuserpolicy
    baseUri: https://iam.amazonaws.com
    description: 'APIs.io Engineering Platform AWS Identity and Access Management — #Action=AttachUserPolicy business capability.
      Self-contained, no shared references.'
    resources:
    - name: '#Action=AttachUserPolicy'
      path: /#Action=AttachUserPolicy
      operations:
      - name: getattachuserpolicy
        method: GET
        description: <p>Attaches the specified managed policy to the specified user.</p> <p>You use this operation to attach
          a <i>managed</i> policy to a user. To embed an inline policy in a user, use <a>PutUserPolicy</a>.</p> <p>As a best
          practice, you can val
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: UserName
          in: query
          type: string
          description: <p>The name (friendly name, not ARN) of the IAM user to attach the policy to.</p> <p>This parameter
            allows (through its <a href="http://wikipedia.org/wiki/regex
          required: true
        - name: PolicyArn
          in: query
          type: string
          description: <p>The Amazon Resource Name (ARN) of the IAM policy you want to attach.</p> <p>For more information
            about ARNs, see <a href="https://docs.aws.amazon.com/general
          required: true
        - name: Action
          in: query
          type: string
          required: true
        - name: Version
          in: query
          type: string
          required: true
      - name: postattachuserpolicy
        method: POST
        description: <p>Attaches the specified managed policy to the specified user.</p> <p>You use this operation to attach
          a <i>managed</i> policy to a user. To embed an inline policy in a user, use <a>PutUserPolicy</a>.</p> <p>As a best
          practice, you can val
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: Action
          in: query
          type: string
          required: true
        - name: Version
          in: query
          type: string
          required: true
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: false
    authentication:
      type: apikey
      key: Authorization
      value: '{{env.ENGINEERING_PLATFORM_API_KEY}}'
      placement: header
  exposes:
  - type: rest
    namespace: aws-iam-action-attachuserpolicy-rest
    port: 8080
    description: 'REST adapter for APIs.io Engineering Platform AWS Identity and Access Management — #Action=AttachUserPolicy.
      One Spectral-compliant resource per consumed operation, prefixed with /v1.'
    resources:
    - path: /v1/action-attachuserpolicy
      name: action-attachuserpolicy
      description: 'REST surface for #Action=AttachUserPolicy.'
      operations:
      - method: GET
        name: getattachuserpolicy
        description: <p>Attaches the specified managed policy to the specified user.</p> <p>You use this operation to attach
          a <i>managed</i> policy to a user. To embed an inline policy in a user, use <a>PutUserPolicy</a>.</p> <p>As a best
          practice, you can val
        call: aws-iam-action-attachuserpolicy.getattachuserpolicy
        with:
          UserName: rest.UserName
          PolicyArn: rest.PolicyArn
          Action: rest.Action
          Version: rest.Version
        outputParameters:
        - type: object
          mapping: $.
      - method: POST
        name: postattachuserpolicy
        description: <p>Attaches the specified managed policy to the specified user.</p> <p>You use this operation to attach
          a <i>managed</i> policy to a user. To embed an inline policy in a user, use <a>PutUserPolicy</a>.</p> <p>As a best
          practice, you can val
        call: aws-iam-action-attachuserpolicy.postattachuserpolicy
        with:
          Action: rest.Action
          Version: rest.Version
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: aws-iam-action-attachuserpolicy-mcp
    port: 9090
    transport: http
    description: 'MCP adapter for APIs.io Engineering Platform AWS Identity and Access Management — #Action=AttachUserPolicy.
      One tool per consumed operation, routed inline through this capability''s consumes block.'
    tools:
    - name: p-attaches-specified-managed-policy-specified
      description: <p>Attaches the specified managed policy to the specified user.</p> <p>You use this operation to attach
        a <i>managed</i> policy to a user. To embed an inline policy in a user, use <a>PutUserPolicy</a>.</p> <p>As a best
        practice, you can val
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: aws-iam-action-attachuserpolicy.getattachuserpolicy
      with:
        UserName: tools.UserName
        PolicyArn: tools.PolicyArn
        Action: tools.Action
        Version: tools.Version
      outputParameters:
      - type: object
        mapping: $.
    - name: p-attaches-specified-managed-policy-specified-2
      description: <p>Attaches the specified managed policy to the specified user.</p> <p>You use this operation to attach
        a <i>managed</i> policy to a user. To embed an inline policy in a user, use <a>PutUserPolicy</a>.</p> <p>As a best
        practice, you can val
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: aws-iam-action-attachuserpolicy.postattachuserpolicy
      with:
        Action: tools.Action
        Version: tools.Version
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.