Note: Please perform below tweak in test before moving to Production.
After Setting up sync between On-premises Active directory with Office 365. There are few tweaks which can help us getting work done quickly and in a clean way.
Tweak 1: Changing time between sync cycles
Tweak 2: Limiting the number of synced objects
Changing time between sync cycles
By default, the sync cycles are set up for 3-hour intervals. To reduce the time between sync follow below steps:
1. On the server, where the Dirsync tool is installed go to the location “C:\Program Files\Windows Azure Active Directory Sync folder”.
2. Open the “Microsoft.Online.DirSync.Scheduler.exe.Config” file with the Notepad.
3. Search the following string: <add key=SyncTimeInterval value=3:0:0 />
4. 3:0:0 means 3 hours we have changes it to 0:5:0 means 5 minutes. (Change it accordingly)
5. Save changes in the file and restart the Windows Azure Active Directory Sync Service in system services.
Now, the sync cycle will run after every 5 minutes.
Limiting the number of synced objects
On-premises can have large number users and we want only few users or group to use Office 365. Below steps can help you to sync a specific OU only. It will be good if you create a separate OU (office 365) for user who will be using it.
So, let’s get started
1. On the DirSync server open the C:\Program Files\Windows Azure Active Directory Sync\SYNCBUS\Synchronization Service\UIShell location.
2. Open miisclient.exe.
3. Open the Management Agents tab
4. Right-click Active Directory Connector and select Properties.
5. Navigate to Configure Directory Partitions and click the Containers button.
6. In the next window enter credentials of the AD administrative user:
7. Select the OU container of your choice and click OK.
8. Click OK again to return to the Management Agents tab.
9. Right-click the Active Directory Connector agent and click Run.
10. Select Full Import Full Sync and hit OK.
11. On operation tab, full sync will be running you can check for the status.
Now, we have fully synced specific OU with Office 365. So, any change on active directory object will be sync to the cloud.
Hope it helps.