Solved

Remove Security Group from DirSync enabled Office 365 Address Book

Posted on 2014-10-02
1
1,664 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 38

Accepted Solution

by:
Vasil Michev (MVP) earned 500 total points
Comment Utility
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

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

Disabling the Directory Sync Service Account in Office 365 will stop directory synchronization from working.
Synchronize a new Active Directory domain with an existing Office 365 tenant
This tutorial will walk an individual through the steps necessary to join and promote the first Windows Server 2012 domain controller into an Active Directory environment running on Windows Server 2008. Determine the location of the FSMO roles by lo…
In a previous video Micro Tutorial here at Experts Exchange (http://www.experts-exchange.com/videos/1358/How-to-get-a-free-trial-of-Office-365-with-the-Office-2016-desktop-applications.html), I explained how to get a free, one-month trial of Office …

763 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

11 Experts available now in Live!

Get 1:1 Help Now