Which APIs do I need to whitelist to import MIP sensitivity labels (with microsoft SDK)

Ketty Agam 30 Reputation points
2023-06-18T09:07:51.25+00:00

Hello

When I use the microsoft sensitivity labels SDK with the options "-l" with the relevant parameters- which APIs we reach in order to fetch the labels?

Azure Information Protection
Azure Information Protection
An Azure service that is used to control and help secure email, documents, and sensitive data that are shared outside the company.
560 questions
0 comments No comments
{count} votes

Accepted answer
  1. Sedat SALMAN 14,185 Reputation points MVP
    2023-06-18T13:02:22.4733333+00:00

    https://learn.microsoft.com/en-us/information-protection/develop/overview

    https://learn.microsoft.com/en-us/information-protection/develop/concept-apis-use-cases

    https://learn.microsoft.com/en-us/information-protection/develop/quick-file-list-labels-cpp

    as per refs above

    The Microsoft Information Protection (MIP) SDK is used to interact with sensitivity labels from Microsoft's classification, labeling, and protection services. The MIP SDK exposes the labeling and protection services from the Office 365 Security and Compliance Center to third-party applications and services.

    The MIP SDK is composed of three primary SDKs

    1. File SDK is an abstraction of both the Protection and Policy SDKs. It provides interfaces for reading labels from the service, applying labels to defined file types, and reading labels from those files. It will be used by any service or application where a supported file type is involved, labels must be read or written, or content must be protected or decrypted.
    2. Policy SDK (aka the Universal Policy Engine (UPE)) allows software developers to retrieve labeling policies for a specific user. It is used primarily by client applications, where the developer controls the interface and file format. It's also used when the only requirement is to retrieve user policy, and not label files directly.
    3. Protection SDK provides the ability for software developers to convert plaintext streams into rights-managed streams, and vice versa.

    In the context of listing sensitivity labels using the File SDK, you can use the ListSensitivityLabels method of the FileEngine object.

    // List sensitivity labels
    cout << "\nSensitivity labels for your organization:\n";
    auto labels = engine->ListSensitivityLabels();
    for (const auto& label : labels)
    {
       cout << label->GetName() << " : " << label->GetId() << endl;
    
       for (const auto& child : label->GetChildren())
       {
         cout << "->  " << child->GetName() << " : " << child->GetId() << endl;
       }
    }
    system("pause");
    
    
    
    
    0 comments No comments

0 additional answers

Sort by: Most 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.