I want to add a linux account via API that will sync SSH keys found during discovery scans without using onboarding rules. Is this possible? I am able to add a windows account that syncs dependencies via discovery but dont know how to approach SSH keys.

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

I want to add a linux account via API that will sync SSH keys found during discovery scans without using onboarding rules. Is this possible? I am able to add a windows account that syncs dependencies via discovery but dont know how to approach SSH keys.

L1 Bithead
4 REPLIES 4

L1 Bithead

To add more details, I have written a script that will onboard multiple accounts that may or may not have dependencies, then we run a discovery scan against the OU and if it finds dependencies for the onboarded account it will add those dependencies to that account without any further intervention or any onboarding rule. I want to do the same with linux accounts and SSH keys, but I notice discovery scans create an account per sshkey found and tries to put them all in a group depending on the account its connected to.

1) Is there a way to make it so those accounts automatically sync to the account I created (im scanning hundreds of servers with multiple accounts and ssh keys so manually doing so or using onboarding rules gets messy)?

2) If I do need to go the route of manually onboarding the accounts into a safe, why does it seem to clear out the account group that discovery creates to tie them together?

 

If there is a better way to handle this please let me know.

 

Thanks,

Colin

L7 Applicator

Hi @Colin @NGA Brodie​ 

 

Please refer to the following Community thread and CyberaArk document for onboarding of SSH keys.

 

Hope it helps !

 

 

https://community.cyberark.com/s/question/0D52J00008ir8ITSAY/ssh-key-onboarding-bulk-request

 

https://docs.cyberark.com/pam-self-hosted/latest/en/content/webservices/add%20public%20ssh%20keys.ht...

L1 Bithead

Thank you for that, but how can this be integrated into the account discovery process? Do we need to pull the discovered ssh keys from pending discovered then run the api to add them to the correct safe?

L4 Transporter

Hello @Colin @NGA Brodie​ 

 

Have you received an answer to your question? If so, we kindly encourage you to share it with us.

Your insights could be valuable to other community members in the future.

 

Thank you, Isar.

  • 152 Views
  • 4 replies
  • 0 Likes
Like what you see?

Show your appreciation!

Click Like if a post is helpful to you or if you just want to show your support.

Click Accept as Solution to acknowledge that the answer to your question has been provided.

The button appears next to the replies on topics you’ve started. The member who gave the solution and all future visitors to this topic will appreciate it!

These simple actions take just seconds of your time, but go a long way in showing appreciation for community members and the LIVEcommunity as a whole!

The LIVEcommunity thanks you for your participation!