How to use Google Cloud Directory Sync

385 views
Skip to first unread message

OSOS nemer

unread,
Feb 2, 2021, 10:32:52 AM2/2/21
to gce-discussion

I have windows AD and need to integrate it with GCP. As I have read that I must to install google cloud directory sync tool in windows AD and configure everything and submit it. after this operation all users/group .. will be synced and can be found in google cloud workspace. 

 That is very clear, but in case there is any change in windows AD, how the changes will be synced? is there a batch file that must be created in windows AD to run the synchronization igen every 5 minutes? could you please advise ?

Fady (Google Cloud Platform)

unread,
Feb 2, 2021, 2:53:35 PM2/2/21
to gce-discussion

This is a very good question. It seems more of a question about using Google Cloud Directory Sync tool to sync an on-prem Windows Active Directory server with Google Workspace and may not be related to Google Cloud Managed AD offering. The latter does not seem to allow for syncing with Google Workspace and may not serve your use-case.

Answering your question, I believe that the tool does not run any processes or services in the background as to sync in real-time. But rather you can configure a cron job/task that would execute the sync on a schedule. This is explained in this document. I have found this tutorial that might help on how to schedule a sync every hour. You may modify the script (step 5) to an interval of 5 minutes.  " -RepetitionInterval (New-TimeSpan -Minutes 5) ` " You may also verify this Superuser post if you are more comfortable with the task scheduler User Interface.

Note that the tutorial is addressing syncing to either Google Workspace or Cloud Identity. So make sure you follow instructions to sync with Google Workspace. I also recommend reading the entire article as it explains all the steps needed to prepare your environment. I hope this helps. 
Reply all
Reply to author
Forward
0 new messages