VMware Cloud Community
Magdalena_
Contributor
Contributor

Automatically trigger Directory sync

Is there any way how one can automatically trigger Directory sync (from clooudclient, vco, restapi ...) ?

0 Kudos
4 Replies
GrantOrchardVMw
Commander
Commander

This can be triggered from the API, but you need to use the administrator@vsphere.local account to do it (I think).

Let me test it and get back to you shortly.

Grant

Grant http://grantorchard.com
0 Kudos
mrmcgrath
Contributor
Contributor

Grant, were you able to identify the call needed to execute a directory sync? This is the only thing preventing us from having a fully-automated user onboarding solution.
0 Kudos
GrantOrchardVMw
Commander
Commander

Sorry, this fell off the front page so I lost track of it.

Can you please try the following?

GET https://vra-01a.corp.local/SAAS/jersey/manager/api/connectormanagement/directoryconfigs/

GET https://vra-01a.corp.local/SAAS/jersey/manager/api/connectormanagement/directoryconfigs/09d7ae99-fef...

POST https://vra-01a.corp.local/SAAS/jersey/manager/api/connectormanagement/directoryconfigs/09d7ae99-fef...

The first is getting a list of directory configs, the second isn't *really* required but is just me listing out the directory config (your ID will be unique), just good to see the process to get to the POST of the sync request.

Grant

Grant http://grantorchard.com
0 Kudos
AndreasDiemer
VMware Employee
VMware Employee

guide to solution found here:

Automated directory synchronization of the vRA Identity Manager - Automate-IT.today

little rebuild and it works like a charme

0 Kudos