Read protected email using Graph API

Alex Baradzin 11 Reputation points
2021-11-10T15:41:51.557+00:00

We use office 365 to send protected emails to customers. When customer replies, reply email comes back as protected as well. Using Graph API we can retrieve the message, but we can only read:
"John Doe has sent you a protected message." and the link to open the message.

Is there a way to get the context of the message using API?

Thank you

Microsoft Security Microsoft Graph
{count} vote

1 answer

Sort by: Most helpful
  1. RajeshKumarMSFT 1,976 Reputation points Microsoft External Staff
    2022-01-21T15:16:43.237+00:00

    Hi @Alex Baradzin ,

    Hope you are doing well,

    Tried to replicate this scenario at my end please find the details below.

    Using these Graph API end points you can get message body details .

    Non protected message Results
    BodyPreview : will return First 255 characters of the message body. It is in text format.
    Body:- The body of the message. It can be in HTML or text format. Find out about safe HTML in a message body.

    167256-nonprotected.png

    Protected message results

    167311-protectedemail.png

    Refer this link :-https://learn.microsoft.com/en-us/graph/api/resources/message?view=graph-rest-1.0

    Getting the context of protected message with Graph API is not supported at this time;

    You can submit this feature request idea using this support link which will be monitored by Microsoft team and make the enhancements to Microsoft Graph APIs.

    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have additional questions about this answer, please click "Comment".

    1 person found this answer helpful.

Your answer

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