kembitnl.pmp.account_info (1.1.6) — module

Generates an accountlist under a resource

Authors: KEMBIT Automation team (ansible@kembit.nl)

Install collection

Install with ansible-galaxy collection install kembitnl.pmp:==1.1.6


Add to requirements.yml

  collections:
    - name: kembitnl.pmp
      version: 1.1.6

Description

Retrieve a list of all accounts under a resource available to the API account

The PMP URL and authtoken must be set in environment variables PMP_URL and PMP_AUTHTOKEN.

Usage examples

  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
# Retrieve all accounts in a resource
- name: Get all resources
  kembitnl.pmp.account_info:
    resourcename: 'Azure & Office 365 Privileged Accounts'
    organization: CUSTOMER

Inputs

    
orgName:
    aliases:
    - organization
    description: The name of the organization. If omitted, the default organization will
      be used.
    required: false
    type: str

resourcename:
    description: The name of the resource
    required: true
    type: str

Outputs

account_info:
  description: Returns a dictionary containing the account list
  returned: on success
  sample:
    ACCOUNT LIST:
    - ACCOUNT ID: '100'
      ACCOUNT NAME: Administrator
      ACCOUNT PASSWORD POLICY: POLICY-EXTREME
      ACCOUNT_DESCRIPTION: ''
      AUTOLOGONLIST:
      - Windows Remote Desktop
      - RDP Console Session
      - VNC
      AUTOLOGONSTATUS: User is not allowed to automatically logging in to remote systems
        in mobile
      ISFAVPASS: 'false'
      ISREASONREQUIRED: 'false'
      ISREMOTEAPPONLY: 'false'
      IS_COMMAND_CONTROL_CONFIGURED: 'false'
      IS_TICKETID_REQD: 'false'
      IS_TICKETID_REQD_ACW: 'false'
      IS_TICKETID_REQD_MANDATORY: 'false'
      IS_USER_WITH_COMMAND_CONTROL_ROLE: 'false'
      PASSWDID: '100'
      PASSWORD STATUS: '****'
      PASSWORDREQUEST_REASON_MANDATORY: 'true'
    - ACCOUNT ID: '110'
      ACCOUNT NAME: SupportOffice
      ACCOUNT PASSWORD POLICY: POLICY_MEDIUM
      ACCOUNT_DESCRIPTION: ''
      AUTOLOGONLIST:
      - Windows Remote Desktop
      - RDP Console Session
      - VNC
      AUTOLOGONSTATUS: User is not allowed to automatically logging in to remote systems
        in mobile
      ISFAVPASS: 'false'
      ISREASONREQUIRED: 'false'
      ISREMOTEAPPONLY: 'false'
      IS_COMMAND_CONTROL_CONFIGURED: 'false'
      IS_TICKETID_REQD: 'false'
      IS_TICKETID_REQD_ACW: 'false'
      IS_TICKETID_REQD_MANDATORY: 'false'
      IS_USER_WITH_COMMAND_CONTROL_ROLE: 'false'
      PASSWDID: '110'
      PASSWORD STATUS: '****'
      PASSWORDREQUEST_REASON_MANDATORY: 'true'
    ALLOWOPENURLINBROWSER: 'true'
    DEPARTMENT: ''
    DNS NAME: DC001.windows.example.com
    DOMAIN NAME: windows.example.com
    ISRDPRESTRICTED: 'false'
    IS_LOCAL_ACCOUNTS_AUTOLOGON_RESTRICTED: 'false'
    IS_SSH_RESTRICTED: 'false'
    LOCATION: ''
    NEWSSHTERMINAL: 'false'
    PASSWORDREQUEST_REASON_MANDATORY: 'true'
    RESOURCE DESCRIPTION: ''
    RESOURCE ID: '1'
    RESOURCE NAME: Windows Domain Accounts
    RESOURCE OWNER: Owner
    RESOURCE PASSWORD POLICY: POLICY-STRONG
    RESOURCE TYPE: WindowsDomain
    RESOURCE URL: ''
  type: list