Is there a way for us to use the Graph API to query the Drafts folder of an Office 365 Group?

Somit Mitra 1 Reputation point
2021-08-13T23:59:40.727+00:00

Here’s an example of the difference in behavior between a shared mailbox and an Office 365 Group:

Account, example@Creat .com has permission to “Send As” example@Creat .com which is a shared mailbox, and also has permission to “Send As” Office365group@Creat .com which is an Office 365 Group.

When creating an email for example@Creat .com, the draft goes into the drafts folder of example@Creat .com and we can look it up using this API call:

https://graph.microsoft.com/v1.0/users/example[@](/users/na/?userId=1c71fb44-0000-0003-0000-000000000000).com/mailFolders('Drafts')/messages

When creating a draft for Office365group@Creat .com the draft goes into the drafts folder of Office365group@Creat .com However, this does not work:

https://graph.microsoft.com/v1.0/groups/{group-id}/mailFolders('Drafts')/messages

Is there a way for us to use the Graph API to query the Drafts folder of an Office 365 group?

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
10,808 questions
{count} votes