question

SomitMitra-7548 avatar image
0 Votes"
SomitMitra-7548 asked KalyanChanumolu-MSFT commented

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

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

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

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

https://graph.microsoft.com/v1.0/users/example@account.com/mailFolders('Drafts')/messages

When creating a draft for Office365group@account.com the draft goes into the drafts folder of Office365group@account.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-mail
· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

@SomitMitra-7548 Welcome to Microsoft Q&A forums.

From the description of your issue, it appears that Office365group@account.com is an email enabled security group and not an Office 365 group.

Could you please try
https://graph.microsoft.com/v1.0/users/Office365group@account.com/mailFolders('Drafts')/messages

You will need Mail.Read.Shared permissions on Office365group mailbox.

0 Votes 0 ·

0 Answers