troubleshooting Question

Given a User's SID, how to remove O365 mailbox AccessRights

Avatar of Jon Ellsworth
Jon Ellsworth asked on
Active DirectoryExchangeMicrosoft 365Powershell
6 Comments2 Solutions801 ViewsLast Modified:
I ran a powershell report to extract AccessRights for all O365 mailboxes. A small portion of them only listed SID that still has access rights. Is there a powershell command that can be run to remove the access rights from those SID references? Approximately half of those SIDs no longer exist in AD. For the most part, we don't remove user accounts. The SIDs could have referenced a user that existed prior to our Exchange 2010/O365 hybrid environment.

If you could also please help me build a command to remove access rights given UPN and Mailbox. I also have the AccessRights listed per entry.

Thank you
Todd Nelson
Systems Administrator

Our community of experts have been thoroughly vetted for their expertise and industry experience.

Top Expert 2016

The Distinguished Expert awards are presented to the top veteran and rookie experts to earn the most points in the top 50 topics.

Join our community to see this answer!
Unlock 2 Answers and 6 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 2 Answers and 6 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros