Can we set custom labels defined through Microsoft Information Protection on emails via Graph API?

Dhananjay Siwach 21 Reputation points
2024-09-18T15:09:54.2+00:00

I am working on integrating Microsoft Information Protection (MIP) with an email system. Specifically, I want to know if it's possible to apply custom sensitivity labels, which are defined through MIP, to emails using the Microsoft Graph API.

Here are the key points I need clarification on:

  1. Custom Labels: Is it possible to apply custom sensitivity labels (created within MIP) to emails using the Graph API?
  2. Graph API Support: Does the Microsoft Graph API have specific endpoints for applying these labels to emails, and if so, how do we authenticate and implement this functionality?
  3. Permissions: What kind of permissions (OAuth or otherwise) are required to apply labels to emails via Graph API?
  4. Examples: If possible, could you provide a code example or documentation link that demonstrates how to set these custom labels on emails?

This will help me determine if Graph API can be used to apply Microsoft Information Protection labels in our email automation flow.

Note: I have tried with SingleValueExtendedProperties in the Message object, but it is not working.

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,573 questions
Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
12,113 questions
0 comments No comments
{count} votes

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.