Configure filtering for directory synchronization
1. Uncheck the Synchronize directories now from the DirSync Finish window and
click Next.
2. From your DirSync Server navigate to
<Drive>\Program Files\Microsoft Online Directory
Sync\SYNCBUS\Synchronization Service\UIShell
3. Double click on miisclient.exe
4. In Identity Manager, click Management
Agents, and then double-click SourceAD.
5. Click Configure Directory Partitions, and
then click Containers
6. When prompted, enter your domain
credentials for the on-premises Active Directory forest.
7. In
the Select Containers dialog box, clear the OUs
that you want skip from syncing to Office365, and then click OK.
8. Click
OK on the SourceAD Properties page.
9. Perform
a full sync: on the Management Agent tab, right-click SourceAD, click Run,
click Full Import Full Sync, and then click OK.
10. You
can also force run DirSync using the following PowerShell command.
Start-OnlineCoexistenceSync -FullSync
11. To
confirm the sync job, open your event log and look for Event ID’s 1 & 2.
i. Event
ID 1 says If configuration Import started
ii. Event
ID 2 says if configuration Import has completed.
Note:
Filtering
configurations applied to your directory synchronization instance aren’t saved
when you install or upgrade to a newer version. If you are upgrading to a newer
version of directory synchronization, you must re-apply filtering
configurations after you upgrade, but before you run the first synchronization
cycle.