Search for a specific folder in Purview eDiscovery and export after Archival

Brennan Marquez 20 Reputation points
2026-06-24T17:16:10.4+00:00

I have a user that needs a specific folder exported from their mailbox. When I look at the folder on their account, it has 4 emails. The user claims it should have near 1,000. When I search in purview with the only condition set as that user's exchange/sharepoint and KeyQL Equal Folderid EXAMPLE NAME TEST (< not the actual name), it shows as 0 results. I know it should at least have 4.

The account does have Archival on and there is another folder there with the same name and an amount of emails that matches their description, but again it is not pulling that information into the search

Microsoft Security | Microsoft Purview
0 comments No comments

Answer accepted by question author

Vasil Michev 127.2K Reputation points MVP Volunteer Moderator
2026-06-24T17:25:47.7833333+00:00

While you can use eDiscovery to search specific folders only, the format required by the FolderId value is a bit more complex than the name of the folder. In a nutshell, you have to take the FolderId value as reported by cmdlets such as Get-MailboxFolderStatistics, then transform it into the acceptable format. As it happens, I recently released a article and sample script that does just that, take a look here: https://michev.info/blog/post/7984/converting-get-mailboxfolderstatistics-ids-for-use-with-the-graph-api

Was this answer helpful?

1 person found this answer helpful.

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.