Solved

Remove Security Group from DirSync enabled Office 365 Address Book

Posted on 2014-10-02
1
2,454 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
[X]
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
1 Comment
 
LVL 41

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

Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

Question has a verified solution.

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

This article shows the method of using the Resultant Set of Policy Tool to locate Group Policy that applies a particular setting.
Enabling the Skype for Business Meeting Scheduler in Hybrid OWA
how to add IIS SMTP to handle application/Scanner relays into office 365.
Attackers love to prey on accounts that have privileges. Reducing privileged accounts and protecting privileged accounts therefore is paramount. Users, groups, and service accounts need to be protected to help protect the entire Active Directory …

724 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