Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to add account using cyberark_account module #59

Open
prabhushankar333 opened this issue May 25, 2023 · 3 comments
Open

Unable to add account using cyberark_account module #59

prabhushankar333 opened this issue May 25, 2023 · 3 comments

Comments

@prabhushankar333
Copy link

prabhushankar333 commented May 25, 2023

Hi Team,

I am unable to add account using cyberark account module, the error says "'Missing Mandatory parameter: [AccountDetails].'" Could please check and let me know if i missed anything on this.

ansible version i have used: ansible [core 2.13.10]
cyberark module version : 1.0.19

ansible code:

- name: Logon - Not use_shared_logon_authentication
  cyberark_authentication:
    api_base_url: https://pv.test.com/
    username: "test user"
    password: "test123"
    use_radius_authentication: yes
- debug:
    msg: "{{ cyberark_session }}" 

- name: Creating an Account using the PAS WebServices SDK
  cyberark_account:
    logging_level: DEBUG
    identified_by: "address,username,platform_id"
    safe: "IT_Infrastructure"
    address: "cyberark.local"
    username: "test account"
    platform_id: test account
    secret: "@N&Ibl3!"
    platform_account_properties:
        LogonDomain: "test account"
        OwnerName: "test user"
    secret_management:
        automatic_management_enabled: true
    state: present
    cyberark_session: "{{ cyberark_session }}"
  register: cyberarkaction

Error while running the playbook:

"msg": "Error while performing add_account.Please validate parameters provided.\n*** end_point=********/PasswordVault/api/Accounts\n ==> {'ErrorCode': 'PASWS017E', 'ErrorMessage': 'Missing Mandatory parameter: [AccountDetails].'}",
@prabhushankar333
Copy link
Author

Did any one had chance to check this?

@szh
Copy link
Contributor

szh commented May 30, 2023

@cyberark-bizdev Can you please take a look?

@compostCY
Copy link

Hello Prabhushankar333:
Please pass in a platform_id that is valid - 'test account' doesn't appear to be a valid platform id.
The error is expected if platform id is invalid or doesn't exist.
I use the sample from the doc with the correct platform id that is out of the box and it's fine.
PAS_Create_ACCT

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants