Home

seach-mailbox group mailbox

%3CLINGO-SUB%20id%3D%22lingo-sub-673141%22%20slang%3D%22en-US%22%3Eseach-mailbox%20group%20mailbox%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-673141%22%20slang%3D%22en-US%22%3E%3CP%3Eow%20do%20you%20search%20a%20group%20mailbox.%3C%2FP%3E%3CPRE%3E%3CSPAN%20class%3D%22typ%22%3ESearch%3C%2FSPAN%3E%3CSPAN%20class%3D%22pun%22%3E-%3C%2FSPAN%3E%3CSPAN%20class%3D%22typ%22%3EMailbox%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22pun%22%3E-%3C%2FSPAN%3E%3CSPAN%20class%3D%22typ%22%3EIdentity%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22str%22%3E%22groupbox%40mail.com%22%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22pun%22%3E-%3C%2FSPAN%3E%3CSPAN%20class%3D%22typ%22%3ESearchQuery%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22str%22%3E'Subject%3A%22Hello%22'%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22pun%22%3E-%3C%2FSPAN%3E%3CSPAN%20class%3D%22typ%22%3ETargetMailbox%3C%2FSPAN%3E%3CSPAN%20class%3D%22pln%22%3E%20me%40mail%3C%2FSPAN%3E%3CSPAN%20class%3D%22pun%22%3E.%3C%2FSPAN%3E%3CSPAN%20class%3D%22pln%22%3Ecom%20%3C%2FSPAN%3E%3CSPAN%20class%3D%22pun%22%3E-%3C%2FSPAN%3E%3CSPAN%20class%3D%22typ%22%3ETargetFolder%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22str%22%3E%22Inbox%22%3C%2FSPAN%3E%3C%2FPRE%3E%3CP%3EWhen%20I%20try%20to%20search%20the%20group%20mailbox%20I%20get%20the%20error%20message.%20The%20operation%20couldn't%20be%20performed%20because%20object%20'groupbox%40mail.com'%20couldn't%20be%20found%20on%20'xxxxxx.PROD.OUTLOOK.COM'.%3C%2FP%3E%3CP%3EBut%20when%20I%20search%20for%20the%20mailbox%20I%20can%20find%20it.%3C%2FP%3E%3CPRE%3E%3CSPAN%20class%3D%22typ%22%3EGet%3C%2FSPAN%3E%3CSPAN%20class%3D%22pun%22%3E-%3C%2FSPAN%3E%3CSPAN%20class%3D%22typ%22%3EMailbox%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22pun%22%3E-%3C%2FSPAN%3E%3CSPAN%20class%3D%22typ%22%3EGroupMailbox%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22pun%22%3E-%3C%2FSPAN%3E%3CSPAN%20class%3D%22typ%22%3EIdentity%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22str%22%3E%22groupbox%40mail.com%22%3C%2FSPAN%3E%3C%2FPRE%3E%3CP%3EIs%20it%20because%20it%20is%20a%20group%20mailbox%3F%20How%20do%20you%20search%20a%20group%20mailbox%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-673141%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EExchange%20Online%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-673206%22%20slang%3D%22en-US%22%3ERe%3A%20seach-mailbox%20group%20mailbox%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-673206%22%20slang%3D%22en-US%22%3E%3CP%3EYup%2C%20group%20mailboxes%20are%20not%20supported.%20Use%20eDiscovery%2FContent%20search%20in%20the%20Security%20and%20compliance%20center.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-675986%22%20slang%3D%22en-US%22%3ERe%3A%20seach-mailbox%20group%20mailbox%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-675986%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F58%22%20target%3D%22_blank%22%3E%40Vasil%20Michev%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20have%20the%20eDiscovery%20Administrator%20role.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EIs%20there%20a%20way%20to%20batch%20delete%20emails%20from%20a%20group%20mailbox.%3C%2FP%3E%3CP%3EI%20have%20a%20testing%20application%20that%20has%20sent%20a%20lot%20of%20emails%20to%20that%20group%20mailbox.%3C%2FP%3E%3CP%3EI%20wish%20to%20empty%20the%20entire%20group%20mailbox.%3C%2FP%3E%3CP%3EWhats%20the%20best%20way%20to%20do%20this%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-676944%22%20slang%3D%22en-US%22%3ERe%3A%20seach-mailbox%20group%20mailbox%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-676944%22%20slang%3D%22en-US%22%3E%3CP%3EYou%20can%20use%20some%20EWS-based%20script%2C%20or%20simply%20recreate%20the%20group.%20Should%20also%20be%20possible%20to%20select%20all%20messages%20via%20Outlook%20and%20delete%20them%20in%20one%20go%2C%20but%20I've%20only%20tested%20this%20with%20groups%20with%20handful%20of%20messages.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-682062%22%20slang%3D%22en-US%22%3ERe%3A%20seach-mailbox%20group%20mailbox%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-682062%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F58%22%20target%3D%22_blank%22%3E%40Vasil%20Michev%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EIs%20this%20what%20you%20a%20referring%20to%20when%20you%20say%20EWS-based%20scripts%3F%3C%2FP%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fexchange%2Fclient-developer%2Fexchange-web-services%2Fexplore-the-ews-managed-api-ews-and-web-services-in-exchange%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fexchange%2Fclient-developer%2Fexchange-web-services%2Fexplore-the-ews-managed-api-ews-and-web-services-in-exchange%3C%2FA%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20am%20currently%20looking%20through%20the%20documentation%20trying%20to%20figure%20out%20how%20to%20get%20the%20mailbox%20or%20folder.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20have%20tried%20the%20select%20and%20delete%20all%20using%20the%20desktop%20and%20web%20client%20but%20it%20doesn't%20seem%20to%20do%20anything%20thing%20when%20I%20click%20delete%20all.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20can%20delete%20in%20batches%20on%20what%20is%20displayed%20on%20the%20screen.%20But%20it%20a%20tedious%20repetitive%20process.%20I%20would%20just%20like%20a%20script%20I%20can%20run%20that%20deletes%20all.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-682318%22%20slang%3D%22en-US%22%3ERe%3A%20seach-mailbox%20group%20mailbox%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-682318%22%20slang%3D%22en-US%22%3E%3CP%3EYup%2C%20that's%20what%20I'm%20referring%20to%2C%20and%20here's%20an%20article%20that%20talks%20about%20using%20EWS%20for%20Groups%3A%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fgsexdev.blogspot.com%2F2015%2F05%2Fusing-office-365-groups-within-ews.html%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fgsexdev.blogspot.com%2F2015%2F05%2Fusing-office-365-groups-within-ews.html%3C%2FA%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EYou%20can%20of%20course%20also%20use%20the%20Graph%20API%3A%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fgraph%2Fapi%2Fgroup-get-conversation%3Fview%3Dgraph-rest-1.0%26amp%3Btabs%3Dcs%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fgraph%2Fapi%2Fgroup-get-conversation%3Fview%3Dgraph-rest-1.0%26amp%3Btabs%3Dcs%3C%2FA%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-682412%22%20slang%3D%22en-US%22%3ERe%3A%20seach-mailbox%20group%20mailbox%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-682412%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F58%22%20target%3D%22_blank%22%3E%40Vasil%20Michev%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThanks.%3C%2FP%3E%3CP%3EJust%20had%20a%20look%20at%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fgsexdev.blogspot.com%2F2015%2F05%2Fusing-office-365-groups-within-ews.html%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fgsexdev.blogspot.com%2F2015%2F05%2Fusing-office-365-groups-within-ews.html%3C%2FA%3E%26nbsp%3Bbut%20it%20seems%20to%20be%20referencing%26nbsp%3B%3C%2FP%3E%3CPRE%3EMicrosoft.Exchange.WebServices.Data.Groups.RequestedUnifiedGroupsSet%3C%2FPRE%3E%3CP%3EI%20have%20installed%20the%20%3CSPAN%3EMicrosoft%20Exchange%20Web%20Services%20Managed%20API%202.2%3C%2FSPAN%3E%3CBR%20%2F%3E%3CA%20href%3D%22https%3A%2F%2Fwww.microsoft.com%2Fen-us%2Fdownload%2Fdetails.aspx%3Fid%3D42951%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fwww.microsoft.com%2Fen-us%2Fdownload%2Fdetails.aspx%3Fid%3D42951%3C%2FA%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EBut%20can't%20find%20that%20Groups%20Library.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fdotnet%2Fapi%2Fmicrosoft.exchange.webservices.data%3Fview%3Dexchange-ews-api%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fdotnet%2Fapi%2Fmicrosoft.exchange.webservices.data%3Fview%3Dexchange-ews-api%3C%2FA%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20can%20find%20in%20the%20open%20source%20library%3C%2FP%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fgithub.com%2FOfficeDev%2Fews-managed-api%2Ftree%2Fmaster%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fgithub.com%2FOfficeDev%2Fews-managed-api%2Ftree%2Fmaster%3C%2FA%3E%3C%2FP%3E%3CP%3EBut%20I%20don't%20think%20is%20been%20implemented%20in%202.2.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20will%20continue%20to%20read%20the%20documentation%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E
Highlighted
adrianhalid
New Contributor

ow do you search a group mailbox.

Search-Mailbox -Identity "groupbox@mail.com" -SearchQuery 'Subject:"Hello"' -TargetMailbox me@mail.com -TargetFolder "Inbox"

When I try to search the group mailbox I get the error message. The operation couldn't be performed because object 'groupbox@mail.com' couldn't be found on 'xxxxxx.PROD.OUTLOOK.COM'.

But when I search for the mailbox I can find it.

Get-Mailbox -GroupMailbox -Identity "groupbox@mail.com"

Is it because it is a group mailbox? How do you search a group mailbox?

6 Replies

Yup, group mailboxes are not supported. Use eDiscovery/Content search in the Security and compliance center.

@Vasil Michev 

 

I have the eDiscovery Administrator role.

 

Is there a way to batch delete emails from a group mailbox.

I have a testing application that has sent a lot of emails to that group mailbox.

I wish to empty the entire group mailbox.

Whats the best way to do this?

You can use some EWS-based script, or simply recreate the group. Should also be possible to select all messages via Outlook and delete them in one go, but I've only tested this with groups with handful of messages.

@Vasil Michev 

 

Is this what you a referring to when you say EWS-based scripts?

https://docs.microsoft.com/en-us/exchange/client-developer/exchange-web-services/explore-the-ews-man...

 

I am currently looking through the documentation trying to figure out how to get the mailbox or folder.

 

I have tried the select and delete all using the desktop and web client but it doesn't seem to do anything thing when I click delete all.

 

I can delete in batches on what is displayed on the screen. But it a tedious repetitive process. I would just like a script I can run that deletes all.

 

Yup, that's what I'm referring to, and here's an article that talks about using EWS for Groups: https://gsexdev.blogspot.com/2015/05/using-office-365-groups-within-ews.html

 

You can of course also use the Graph API: https://docs.microsoft.com/en-us/graph/api/group-get-conversation?view=graph-rest-1.0&tabs=cs

@Vasil Michev 

 

Thanks.

Just had a look at https://gsexdev.blogspot.com/2015/05/using-office-365-groups-within-ews.html but it seems to be referencing 

Microsoft.Exchange.WebServices.Data.Groups.RequestedUnifiedGroupsSet

I have installed the Microsoft Exchange Web Services Managed API 2.2
https://www.microsoft.com/en-us/download/details.aspx?id=42951

 

But can't find that Groups Library.

 

https://docs.microsoft.com/en-us/dotnet/api/microsoft.exchange.webservices.data?view=exchange-ews-ap...

 

I can find in the open source library

https://github.com/OfficeDev/ews-managed-api/tree/master

But I don't think is been implemented in 2.2.

 

I will continue to read the documentation

 

Related Conversations
Extentions Synchronization
ChirmyRam in Discussions on
3 Replies
Tabs and Dark Mode
cjc2112 in Discussions on
35 Replies
flashing a white screen while open new tab
Deleted in Discussions on
14 Replies
Stable version of Edge insider browser
HotCakeX in Discussions on
35 Replies