How to set the Outlook Email Sensitivity using API Call ?

sud, sud 0 Reputation points
2024-05-08T15:51:01+00:00

Trying to set the sensitivity of an outbound Email using following API. No error. Email is sent/received successfully. But Message sensitivity is NOT set to "Secure" as expected. Pls help.

{

  "message": {

    "subject": "Mail API Test",

    "body": {

      "contentType": "Text",

      "content": "Mail API TestMail API Test."

    },

    "toRecipients": [

      {

        "emailAddress": {

          "address": "*** Email address is removed for privacy ***"

        }

      }

    ],

    "ccRecipients": [

      {

        "emailAddress": {

          "address": "*** Email address is removed for privacy ***"

        }

      }

    ]

  },

  "singleValueExtendedProperties": [

            {

                "Id": "Integer 0x0036",

                "Value": "3"  

            }

        ]

}

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

1 answer

Sort by: Most helpful
  1. CharanyaB-MSFT 1,421 Reputation points Microsoft Vendor
    2024-05-09T19:26:30.6366667+00:00

    Hello @sud, sud,

    Currently message sensitivity property (Public, Private, Confidential etc.) cannot be set via the Graph API queries. As per documentation only these message properties can be set using Graph API.

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

    Hope this helps.

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

    0 comments No comments