El maik
El maik

Reputation: 59

get public folders using microsoft graph API

I am trying to get public folders with no luck and I cannot find anything related to it on microsoft graph documentation, is it possible to get public folders added to any mailbox on the same tenant? Thanks!

Upvotes: 4

Views: 3023

Answers (2)

Gary Cawley
Gary Cawley

Reputation: 11

PublicFoldersRoot does not work in Graph Explorer. ArchiveMsgFolderRoot did not work either.

These worked. And I assume any other mailbox WellKnownFolderName will work.

https://graph.microsoft.com/v1.0/users/{user}/mailFolders/MsgFolderRoot
https://graph.microsoft.com/v1.0/users/{user}/mailFolders/Root

Upvotes: 1

pheobas
pheobas

Reputation: 304

There isn't great information or documentation on this topic, but it looks like you can access public folders by specifying the PublicFoldersRoot WellKnownFolderName

https://graph.microsoft.com/v1.0/users/{user}/mailFolders/PublicFoldersRoot
https://graph.microsoft.com/v1.0/users/{user}/mailFolders/PublicFoldersRoot/childFolders

Upvotes: 0

Related Questions