When I use https://graph.microsoft.com/v1.0/users/{id}/mailFolders graph api, it only lists public folders. Is there a way to get all the hidden folders(Recoverable Items) in a mailbox like in EWS?
1 Answers
2
votes
The WellKnownFolderName enumerations should work okay eg
https://graph.microsoft.com/v1.0/users('[email protected]')/MailFolders/RecoverableItemsRoot
https://graph.microsoft.com/v1.0/users('[email protected]')/MailFolders/RecoverableItemsDeletion
https://graph.microsoft.com/v1.0/users('[email protected]')/MailFolders/RecoverableItemsPurges
https://graph.microsoft.com/v1.0/users('[email protected]')/MailFolders/RecoverableItemsVersions
otherwise look at Child Folders of the Root eg
https://graph.microsoft.com/v1.0/me/MailFolders/Root/childfolders/?$Top=1000