cyberark / epv-api-scripts

These API scripts enable CyberArk users to automate privileged account management task like account creation, user management, and more.
https://www.cyberark.com/best
Apache License 2.0
201 stars 176 forks source link

Can't update accounts using -Update parameter #202

Closed captainfalcon23 closed 2 years ago

captainfalcon23 commented 3 years ago

When ever I try to use update command to update an existing account to associate reconcile account (or even add notes or anything) I am getting below error:

Getting PVWA Credentials to start Onboarding Accounts

Starting to Onboard 1 accounts Safe XXX exists Account XXX@XXX.com.au exist No Account updates detected - Skipping Logoff Session...

Vaulted 0 out of 1 accounts successfully.

LogoffUrl

Is there some syntax issue in my csv? It is based on the example given: name,username,address,safe,Notes,ExtraPass3Folder,ExtraPass3Name,ExtraPass3Safe

Do we specifically need to follow the steps here, even if adding recon/logon account works fine in the UI? https://cyberark-customers.force.com/s/article/Add-Reconcile-and-Login-Accounts-to-an-Account-using-V10-REST-API

AssafMiron commented 3 years ago

Hi @captainfalcon23 ,

In order to update the linked accounts, at the moment you need to use the follow the steps as described here: https://cyberark-customers.force.com/s/article/Add-Reconcile-and-Login-Accounts-to-an-Account-using-V10-REST-API

We are planning to add support of the newly released Linked accounts REST API But that would be relevant only for supporting versions

Regards, Assaf

captainfalcon23 commented 3 years ago

Hi @AssafMiron

Thanks - I got it working using -create option and following steps in mentioned article. However, when using the -Update flag, no matter the attrivute I try to add, I always get the error:

No Account updates detected - Skipping

Is the syntax of my CSV file correct for update? Even to add notes etc?

AssafMiron commented 3 years ago

Can you share your CSV file (using bogus details of course)

captainfalcon23 commented 3 years ago

This is it:

image

bab29 commented 2 years ago

@captainfalcon23

I want to confirm that this issue has been resolved and this can be closed. Thanks

captainfalcon23 commented 2 years ago

Hello, no it never got resolved. Issue is no matter what is in the csv, the accounts never get updated and always get skipped.

bab29 commented 2 years ago

Are the fields you are trying to update extrapass fields or other fields?

captainfalcon23 commented 2 years ago

Other fields. Does it work for you? Can you share example csv?

bab29 commented 2 years ago

I will review the latest version and get back to you but it should.

bab29 commented 2 years ago

A new version has been released that should solve this issue. Please try again.

captainfalcon23 commented 2 years ago

I actually am in a different role now and no longer using cyberark. Can you test the functionality and close this issue if all good?