Solved

Remove an OU from DirSync in the middle of a Staged Migration

Posted on 2015-01-31
11
121 Views
Last Modified: 2015-02-05
I have been successfully DirSync 4 thousand users during a staged migration.
I just realized there is an entire OU filled with 1200 "users" that are simply place holders for wireless users.
I am not a network guy but I recognize this a security mechanism or the like - but it does not need to be synced.

Anyway, my question is how can I exclude this OU now that it is already "Syncing"?

Thank you for your time in advance.
0
Comment
Question by:K B
  • 4
  • 4
  • 3
11 Comments
 
LVL 16

Expert Comment

by:Ivan
ID: 40581940
Hi,

I don't think there is a "stop" button for this. After sync is done, you can configure exclusion for OU, export Azure AD (from dyr sync tool) and do a Full Sync Full Import, so that specified OU get's deleted from Office 365.

Regards
0
 
LVL 6

Author Comment

by:K B
ID: 40581942
Will this cause an interruption of service?
0
 
LVL 16

Expert Comment

by:Ivan
ID: 40581950
Well, I have done this few days ago and everything was working. Required users got deleted, I was logged on the entire time on office 365, Lync worked for all users..

I don't think there is any interruption, but I am not 100% sure.
0
 
LVL 21

Expert Comment

by:Jakob Digranes
ID: 40582771
@spriggan13 is correct.... as long as you don't remove any users with licenses and mailboxes assigned to them - no probl
0
 
LVL 6

Author Comment

by:K B
ID: 40582818
So I don't stop DirSync in any way?

1. I configure the OU exclusions (where in DirSync)?

   2. Then Remove-MsolUser ...the users I don't want synced (& removefromrecyclebin) ?
      3. Anything else?


Thanks again!
0
Problems using Powershell and Active Directory?

Managing Active Directory does not always have to be complicated.  If you are spending more time trying instead of doing, then it's time to look at something else. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why

 
LVL 21

Expert Comment

by:Jakob Digranes
ID: 40582852
only 1.
http://blogs.msdn.com/b/denotation/archive/2012/11/21/installing-and-configure-dirsync-with-ou-level-filtering-for-office365.aspx 
remove OU here then run full import full sync

no need to delete users from OFfice 365 -- they'll be removed from recycle bin in 30 days
0
 
LVL 16

Assisted Solution

by:Ivan
Ivan earned 250 total points
ID: 40582873
Hi,

as jakob_si said, you don't delete users that were synced from you AD by going to Office 365 and deleting them there.
When you configure OU or users filtering in DirSync, those OU/users will get deleted from Office 365.

So:
1. Configure DirSync filtering so required OU/users get filtered
2. Run Export Azure AD, from DirSync tool --> this will delete those OU/users after you run command in step 3.
3. Run Full Import Full Sync from DirSync tool
0
 
LVL 6

Author Comment

by:K B
ID: 40582953
Thanks Gents,

So in summary I do not rerun the DirSync setup.. instead I run:

1.      From your DirSync Server navigate to <Drive>\Program Files\Microsoft Online Directory Sync\SYNCBUS\Synchronization Service\UIShell

2.      Double click on miisclient.exe

3.      In Identity Manager, click Management Agents, and then double-click SourceAD.

4.      Click Configure Directory Partitions, and then click Container.

5.      When prompted, enter your domain credentials for the on-premises Active Directory forest.

6.      In the Select Containers dialog box, clear the OUs that you want to skip from syncing to Office365, and then click OK.

7.      Click OK on the SourceAD Properties page.

8.      Perform a full sync: on the Management Agent tab, right-click SourceAD, click Run, click Full Import Full Sync, and then click OK.
0
 
LVL 21

Accepted Solution

by:
Jakob Digranes earned 250 total points
ID: 40583443
Yes .... and within a couple of hours, users not synced will be removed from O365
0
 
LVL 6

Author Comment

by:K B
ID: 40592319
Close App & restart the FIM service before Step 8?

Does this sound logical?  Heard this from a SME

thoughts?
0
 
LVL 21

Expert Comment

by:Jakob Digranes
ID: 40593041
never done that
0

Featured Post

Do email signature updates give you a headache?

Constantly trying to correctly format email signatures? Spending all of your time at every user’s desk to make updates? Want high-quality HTML signatures on all devices, including on mobiles and Macs? Then, let Exclaimer solve all your email signature problems today!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Find out what the Office 365 disclaimer function is, why you would use it and its limited ability to create Office 365 signatures.
Cloud-based technologies and services will continue to grow in popularity in 2017 thanks to the simple, scalable and cost-effective solutions they deliver. Here are three areas where cloud adoption is poised to really take off.
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…
This Experts Exchange video Micro Tutorial shows how to tell Microsoft Office that a word is NOT spelled correctly. Microsoft Office has a built-in, main dictionary that is shared by Office apps, including Excel, Outlook, PowerPoint, and Word. When …

867 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now