kembitnl / kembitnl.pmp / 1.1.6 / module / account_info Generates an accountlist under a resource Authors: KEMBIT Automation team (ansible@kembit.nl)kembitnl.pmp.account_info (1.1.6) — module
Install with ansible-galaxy collection install kembitnl.pmp:==1.1.6
collections: - name: kembitnl.pmp version: 1.1.6
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.
# Retrieve all accounts in a resource - name: Get all resources kembitnl.pmp.account_info: resourcename: 'Azure & Office 365 Privileged Accounts' organization: CUSTOMER
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
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