AWS IAM - User enrichment

Enrich AWS IAM user information from AWS Identity and Access Management. - List user access keys - Get user information

AWS - IAM · 4 tasks · 1 input · 10 outputs

Details

IDAWS IAM - User enrichment
From Version5.5.0
Tasks4

README

Enrich AWS IAM user information from AWS Identity and Access Management.

  • List user access keys
  • Get user information

Dependencies

This playbook uses the following sub-playbooks, integrations, and scripts.

Sub-playbooks

This playbook does not use any sub-playbooks.

Integrations

  • AWS - IAM

Scripts

This playbook does not use any scripts.

Commands

  • aws-iam-get-user
  • aws-iam-list-access-keys-for-user

Playbook Inputs


Name Description Default Value Required
username Name of the AWS IAM user to enrich.   Optional

Playbook Outputs


There are no outputs for this playbook.

Playbook Image


AWS IAM - User enrichment

Inputs

  • username — Name of the AWS IAM user to enrich.

Outputs

  • AWS.IAM.Users.UserName — The friendly name identifying the user.
  • AWS.IAM.Users.UserId — The stable and unique string identifying the user.
  • AWS.IAM.Users.Arn — The Amazon Resource Name (ARN) that identifies the user.
  • AWS.IAM.Users.CreateDate — The date and time when the user was created.
  • AWS.IAM.Users.Path — The path to the user.
  • AWS.IAM.Users.PasswordLastUsed — The date and time, when the user's password was last used to sign in to an AWS website.
  • AWS.IAM.Users.AccessKeys.AccessKeyId — The ID for this access key.
  • AWS.IAM.Users.AccessKeys.Status — The status of the access key. Active means the key is valid for API calls; Inactive means it is not.
  • AWS.IAM.Users.AccessKeys.CreateDate — The date when the access key was created.
  • AWS.IAM.Users.AccessKeys.UserName — The name of the IAM user that the key is associated with.

Commands used

aws-iam-get-user aws-iam-list-access-keys-for-user

Flowchart

Start Start AWS IAM - Get user information - aws-iam-get-user AWS IAM - Get user inform... aws-iam-get-user AWS IAM - List user access keys - aws-iam-list-access-keys-for-user AWS IAM - List user acce... aws-iam-list-access-keys-for-... Done Done
id: AWS IAM - User enrichment
version: -1
name: AWS IAM - User enrichment
description: |
  Enrich AWS IAM user information from AWS Identity and Access Management.
  - List user access keys
  - Get user information
starttaskid: "0"
tasks:
  "0":
    id: "0"
    taskid: bf88e387-af78-4e87-8bb3-68cba5afb624
    type: start
    task:
      id: bf88e387-af78-4e87-8bb3-68cba5afb624
      version: -1
      name: ""
      iscommand: false
      brand: ""
      description: ''
    nexttasks:
      '#none#':
      - "3"
      - "2"
    separatecontext: false
    view: |-
      {
        "position": {
          "x": 410,
          "y": -20
        }
      }
    note: false
    timertriggers: []
    ignoreworker: false
    skipunavailable: false
    quietmode: 0
    isoversize: false
    isautoswitchedtoquietmode: false
  "2":
    id: "2"
    taskid: 6375c9c5-a24c-4469-8b62-21f382d3d5a5
    type: regular
    task:
      id: 6375c9c5-a24c-4469-8b62-21f382d3d5a5
      version: -1
      name: AWS IAM - Get user information
      description: Retrieves information about the specified IAM user, including the user's creation date, path, unique ID, and ARN.
      script: AWS - IAM|||aws-iam-get-user
      type: regular
      iscommand: true
      brand: AWS - IAM
    nexttasks:
      '#none#':
      - "4"
    scriptarguments:
      userName:
        complex:
          root: inputs.username
    separatecontext: false
    view: |-
      {
        "position": {
          "x": 640,
          "y": 120
        }
      }
    note: false
    timertriggers: []
    ignoreworker: false
    skipunavailable: false
    quietmode: 0
    isoversize: false
    isautoswitchedtoquietmode: false
  "3":
    id: "3"
    taskid: 05067a56-0350-4f75-8075-85ccd9c98f0c
    type: regular
    task:
      id: 05067a56-0350-4f75-8075-85ccd9c98f0c
      version: -1
      name: 'AWS IAM -  List user access keys   '
      description: Returns information about the access key IDs associated with the specified IAM user.
      script: AWS - IAM|||aws-iam-list-access-keys-for-user
      type: regular
      iscommand: true
      brand: AWS - IAM
    nexttasks:
      '#none#':
      - "4"
    scriptarguments:
      userName:
        complex:
          root: inputs.username
    separatecontext: false
    view: |-
      {
        "position": {
          "x": 170,
          "y": 120
        }
      }
    note: false
    timertriggers: []
    ignoreworker: false
    skipunavailable: false
    quietmode: 0
    isoversize: false
    isautoswitchedtoquietmode: false
  "4":
    id: "4"
    taskid: 8841cc35-4eda-42cc-82a9-fb7806cb3642
    type: title
    task:
      id: 8841cc35-4eda-42cc-82a9-fb7806cb3642
      version: -1
      name: Done
      type: title
      iscommand: false
      brand: ""
      description: ''
    separatecontext: false
    view: |-
      {
        "position": {
          "x": 410,
          "y": 290
        }
      }
    note: false
    timertriggers: []
    ignoreworker: false
    skipunavailable: false
    quietmode: 0
    isoversize: false
    isautoswitchedtoquietmode: false
view: |-
  {
    "linkLabelsPosition": {},
    "paper": {
      "dimensions": {
        "height": 375,
        "width": 850,
        "x": 170,
        "y": -20
      }
    }
  }
inputs:
- key: username
  value: {}
  required: false
  description: Name of the AWS IAM user to enrich.
  playbookInputQuery:
outputs:
- contextPath: AWS.IAM.Users.UserName
  description: The friendly name identifying the user.
- contextPath: AWS.IAM.Users.UserId
  description: The stable and unique string identifying the user.
- contextPath: AWS.IAM.Users.Arn
  description: The Amazon Resource Name (ARN) that identifies the user.
- contextPath: AWS.IAM.Users.CreateDate
  description: The date and time when the user was created.
- contextPath: AWS.IAM.Users.Path
  description: The path to the user.
- contextPath: AWS.IAM.Users.PasswordLastUsed
  description: The date and time,  when the user's password was last used to sign in to an AWS website.
- contextPath: AWS.IAM.Users.AccessKeys.AccessKeyId
  description: The ID for this access key.
- contextPath: AWS.IAM.Users.AccessKeys.Status
  description: The status of the access key. Active means the key is valid for API calls; Inactive means it is not.
- contextPath: AWS.IAM.Users.AccessKeys.CreateDate
  description: The date when the access key was created.
- contextPath: AWS.IAM.Users.AccessKeys.UserName
  description: The name of the IAM user that the key is associated with.
tests:
- No tests
fromversion: 5.5.0
supportedModules:
- agentix
- xsiam