Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

Remove Security Group from DirSync enabled Office 365 Address Book

Posted on 2014-10-02
1
2,105 Views
Last Modified: 2014-10-02
Environment: Exchange Online, DirSync, Exchange 2010 sp3 to manage Distribution Lists.

We have a security group that is showing up in the Distribution Lists in Exchange Online. I removed the exchange attributes using the following command: Disable-DistributionGroup -Identity "Example Group". The group is no longer showing up on our on prem distribution list, but it is still visible in Exchange Online as a security group. I can see in DirSync that it did remove exchange attributes, and the only email address showing up in exchange online is an autogenerated onmicrosoft.com address. I even changed it to a global security group instead of a universal security group, but it still won't go away.

Hopefully I covered everything...
The only suggestion I saw online was deactivating dirsync, remove groups from office 365, and reactivate dirsync. There has to be a better way.

Thanks in advance.
0
Comment
Question by:bendretread
1 Comment
 
LVL 40

Accepted Solution

by:
Vasil Michev (MVP) earned 500 total points
ID: 40357509
No need to disable dirsync. Just run this:

 Get-MsolGroup -SearchString "group name" | ft *name,objectId

Open in new window


Note the value of the ObjectId attribute, then remove it:

Remove-MsolGroup -ObjectId b8cf2991-c04c-4744-ac71-5d0063bd1bea

Open in new window


Works again synced groups as well.
0

Featured Post

Are your AD admin tools letting you down?

Managing Active Directory can get complicated.  Often, the native tools for managing AD are just not up to the task.  The largest Active Directory installations in the world have relied on one tool to manage their day-to-day administration tasks: Hyena. Start your trial today.

Question has a verified solution.

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

It’s the first day of March, the weather is starting to warm up and the excitement of the upcoming St. Patrick’s Day holiday can be felt throughout the world.
In this video I am going to show you how to back up and restore Office 365 mailboxes using CodeTwo Backup for Office 365. Learn more about the tool used in this video here: http://www.codetwo.com/backup-for-office-365/ (http://www.codetwo.com/ba…
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …

856 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