Solved

Remove Security Group from DirSync enabled Office 365 Address Book

Posted on 2014-10-02
1
1,808 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 39

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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

Scam emails are a huge burden for many businesses. Spotting one is not always easy. Follow our tips to identify if an email you receive is a scam.
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.
To add imagery to an HTML email signature, you have two options available to you. You can either add a logo/image by embedding it directly into the signature or hosting it externally and linking to it. The vast majority of email clients display l…
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

863 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

24 Experts available now in Live!

Get 1:1 Help Now