Skip to main content
We’ve updated our Terms of Service. A new AI Addendum clarifies how Stack Overflow utilizes AI interactions.
Filter by
Sorted by
Tagged with
-3 votes
0 answers
27 views

How to use MIP SDK Java Wrapper on Amazon Linux 2 [closed]

I have downloaded 1.16 version of MIP SDK Java Wrapper for windows and able to successfully decrypt .rpmsg from Outlook. But now I have an Amazon Linux 2 (AL2) environment which is similar to RHEL. ...
Arun51's user avatar
  • 1
0 votes
0 answers
55 views

Exception “Could not find template with id” after upgrading Microsoft Information Protection SDK from 1.15.104 to 1.17.x

After upgrading the Microsoft Information Protection (MIP) SDK from version 1.15.104 to 1.17.x, we started getting the following exception when applying a sensitivity label to an email message or its ...
tHienSK's user avatar
0 votes
1 answer
40 views

handle.InspectAsync() throws error for .rpmsg file

I have an .rpmsg file that I wish to inspect/decrypt with the MIP SDK. When InspectAsync() is called the library throws this error: "File type cannot be inspected, CorrelationId=dbb6ec29-2c56-...
Erik's user avatar
  • 1
0 votes
1 answer
97 views

Replace file in SharePoint and OneDrive having sensitivity label applied

I have a file in SharePoint and OneDrive which have Sensitive label applied with access control. I want to repalce this file with some other file in my local system which doesn't have sensitive label ...
Amit's user avatar
  • 87
0 votes
0 answers
61 views

C# Restful API on Azure using Microsoft Information Protection SDK File API for C++/.NET version 1.17.158 - VERY SLOW

We need to use On-behalf-of flow using delegatedUser permissions to accept a file from a Angular client, determine if it's protected and then decrypt it and use decrypted bytes for various reasons. we ...
Dave Campbell's user avatar
0 votes
0 answers
118 views

AccessViolationException when creating MIPContext after upgrade to v1.17

We have an on-premise .Net Framework console application that runs as a Windows service which uses the MIP SDK to read and apply labels to files. We are in the process of upgrading to the latest ...
Mark French's user avatar
0 votes
0 answers
91 views

When I apply labels and protections using the MIP SDK, the program stops in CommitAsync

I'm using the MIP SDK to label it as C#. As I implemented and tested the feature, the CommitAsync function generated hang, so I couldn't process it. What should I check? I also post the MIP SDK log. ...
정용우's user avatar
0 votes
0 answers
86 views

How to decrypt Outlook 365 Email Messages in java spring boot

I am working in java and spring boot and using Microsoft Graph API now in outlook 365 encryption is enabled so now i want to know that how can i decrypt that email i am getting message.rpmsg please ...
Dhruv kumar's user avatar
0 votes
1 answer
278 views

Sensitivity label removal works for one label but fails for another

I’m working with Microsoft Information Protection (MIP) SDK to remove sensitivity labels from files: I’ve successfully created two labels within the same tenant, using the same token. Now I’m trying ...
손동진's user avatar
0 votes
0 answers
121 views

How to revoke access to a document using an Azure App Registration secret/certificate

Using the C# wrapper of the MIP SDK I've been trying to protect documents and revoke access to documents. Protection and revocation both work fine when the JWT token is retrieved through an ...
Jamey S.'s user avatar
-1 votes
1 answer
580 views

Microsoft Purview Error when Create Information Protection Scanner Cluster

Im trying create Information Protection Cluster on Azure Purview (Settings -> Solution Settings -> Information Protection), but im getting error saying Client Error. Please check screenshots ...
FDS's user avatar
  • 41
0 votes
1 answer
548 views

Error applying specific sensitivity label using Microsoft Information Protection SDK in C# (AdhocProtectionRequiredException)

I'm using the Microsoft Information Protection (MIP) SDK in C# to apply sensitivity labels to files. When I apply certain labels, the code works without any issues. However, when I try to apply a ...
John Park's user avatar
  • 376
1 vote
1 answer
1k views

Apply Sensitivity Labels to Microsoft Exchange Mail via .NET core code

I would like to apply sensitivity labels to emails programmatically. I have successfully obtained the email ID (message ID) and sensitivity label ID using Graph API in .NET Core Application C#. ...
Amit's user avatar
  • 87
0 votes
1 answer
257 views

Unable to acquire a token in IAuthDelgate of the microsoft information protection sdk

I am generating an Excel file to which I have to add a sensitivity label, and for that, I am using Microsoft Information Protection SDK version 1.15.86. In the MIP SDK setup, we have to implement the ...
Bug Hunter Zoro's user avatar
0 votes
1 answer
1k views

Graph API: How do I get sensitivityLabel list using graph api

I'm trying to get sensitivityLabel list using graph API. I'm working on Graph Explorer to get proper REST url first. https://learn.microsoft.com/en-us/graph/api/security-informationprotection-list-...
John Park's user avatar
  • 376
0 votes
1 answer
232 views

MIP label visibility issue

I am using C++ MIPSDK version 1.14.108 to read\write MIP labels on the documents. It using client credential grant flow to authenticate and uses client secret based authentication to fetch tokens (RMS ...
Bishnu's user avatar
  • 73
0 votes
1 answer
388 views

How to generate an accessToken to use with Microsoft informationprotection Java SDK

I'm using Microsoft Information Protection SDK Wrapper for Java. I've the flow working with Username Password flow to get tokens for a user and it works well with the implementation of ...
Onkar Singh's user avatar
1 vote
2 answers
422 views

[MIP SDK]Unable to open file using protection SDK 1.14

We are consuming MIP SDK to view AIP protected files and showing sensitivity lable for Android and iOS application. For this use case we are using protection sdk to decrypt file using protection ...
Ravish Mahajan's user avatar
0 votes
1 answer
2k views

Programmatically apply sensitivity labels to file - Can fetch labels but not apply them

I am trying to apply Office sensitivity labels to a file in a .NET web application. I based myself mainly on this demo project: https://github.com/Azure-Samples/MipSDK-File-Razor-Sample My application ...
Valyrion's user avatar
  • 2,652
1 vote
1 answer
670 views

Microsoft Information Protection -> ERROR: Default format doesn't support writing properties without protection

I'm using .net core 8 package: enter image description here azure permsssions enter image description here MY CODE: public class AuthDelegateImplementation(ApplicationInfo appInfo) : IAuthDelegate { ...
user1640782's user avatar
-1 votes
1 answer
910 views

.net MIP SDK on Ubuntu 2204 fails to load libraries

Current setup: Running on mcr.microsoft.com/dotnet/sdk:7.0-jammy container (Ubuntu 2204) .net 7.0 Microsoft.InformationProtection.File.Ubuntu2204 Version "1.14.108" Installed all ...
Paulius Putna's user avatar
0 votes
1 answer
276 views

How to send an encrypted/targeted users email with custom sensitivity label?

My company uses M365 with custom sensitivity labels in MIP. Some of this custom labels are configured to encrypt email and to target some specific users, inside or outside our organisation. Using ...
Christian's user avatar
0 votes
1 answer
168 views

Microsoft Information Protection - Apply Sensitivity Label using Azure Function App - SQLite error: 14 'unable to open database file'

Azure function to apply sensitivity label is giving the below error: Error: One or more errors occurred. (Can't open database, check folder permissions. SQLite error: 14 'unable to open database file',...
Sandeep999's user avatar
0 votes
1 answer
402 views

MIP SDK - Removing UDP Label

I am trying to remove a UDP label set on a file in my tenant by using the following code. Could someone point me to a resource that talks about steps that I'll need to perform to remove this type of ...
K. Gill's user avatar
  • 31
1 vote
2 answers
627 views

MIP SDK fails to use DKE sensitivity label

I'm trying to create a Windows application that uses C# MIP SDK (NuGet Microsoft.InformationProtection.File, version 1.13.161) to work with files protected by a Double Key Encryption. I followed this ...
Petr Hoffman's user avatar
0 votes
1 answer
273 views

Not a consistent error code returned from MIP SDK for C++

I am using C++ MIP sdk (version 1.8) to apply MIP tags on data files from my JAVA application using JNI (because java MIP sdk does not have support for RHEL). But right now I am testing on Windows ...
Bishnu's user avatar
  • 73
0 votes
1 answer
343 views

LoadLibrary failure when loading x64\mip_file_sdk.dll

I am trying to run a release version of my MIP SDK integration after recently upgrading to the latest version of the SDK. I can run my service without any issue when running in the Visual Studio ...
Seth Hallem's user avatar
1 vote
0 answers
117 views

What is the behaviour if sensitivity label for all users is published (via policy) for a subset of users?

Suppose I create a sensitivity label with encryption so that only organizational users can access the file. Say there are 100 users in the organization. And then I create a policy that publishes this ...
variable's user avatar
  • 9,876
2 votes
0 answers
246 views

MIP SDK Java Wrapper Sample Crashed With Core Dump

I'm trying out this sample application in a Ubuntu 20.04 VM to decrypt an AIP protected office file using MIP SDK. For the application's dependency, I'm using MIP SDK Java Wrapper version 1.12.101 as ...
Minato Ng's user avatar
1 vote
0 answers
423 views

Label ID was not found in the policy error in MIP SDK (C++)

I am implementing a MIP Server to apply labels to pdf files. I have created a setLabel function that gets the label from the portal and applies it to the file. The following code snippet explains my ...
Ahsan Jamal's user avatar
0 votes
1 answer
309 views

Adding Unified Label to outgoing Outlook email via Powershell script

I have a function that goes into a larger Powershell script. This function constructs and sends an email using Outlook. I'm using Outlook instead of Send-MailMessage or straight to SMTP because I ...
klein's user avatar
  • 3
0 votes
1 answer
92 views

Black out application when shared in teams

MS Office has a great feature I would like to implement in my application, but don't know where to start... When an AIP classified document is opened in an Office application and shared in a Teams ...
Kalle's user avatar
  • 1
0 votes
1 answer
729 views

Remove protection in Excel using Microsoft Information Protection SDK to import these files to my .NET application

I've been trying to import a protected excel into my custom VB.NET Winform application, but it's failing since this excel is protected. I can import the file into the application by changing to ...
Dev Inspirer's user avatar
1 vote
1 answer
1k views

What are my credentials for Microsoft AIP on-premises scanner?

I'm currently trying to implement a AIP on-premises scanner for a local folder. Here are the documentation/tutorial I followed: Youtube tutorial Scanner requirements Microsoft getting started on ...
hlaliberte's user avatar
0 votes
1 answer
436 views

MIP Java SDK error: Can't load D:\eclipse_workspace\aip-service\mip_java.dll

I am trying to use the MIP java sdk wrapper for reading and writing labels from/to a file from a java program. I have downloaded the mip sdk wrapper and copied all the DLLs to the project root folder. ...
Ravi's user avatar
  • 1,001
1 vote
1 answer
337 views

API to get MIP label from a file residing on remote share

I need to read the MIP label(If it is there) from a file residing on a remote shares like SMB\DFS or NFS share. One option is to download the file locally and then read file label using MIP SDK. But ...
Bishnu's user avatar
  • 73
0 votes
1 answer
576 views

MIP SDK - failed to encrypt files got - Error in SSL handshake

We start getting errors for SSL handshake, the error is happening only few times but still we want to find the case The full error is: Failed to send HTTP request with error code 'generic:1' Inner ...
Guy Ben Mayor's user avatar
2 votes
1 answer
640 views

What are the tradeoffs between the different MIP SDK options for the bulk assignment of sensitivity labels?

Given the current status of the MIP SDK, and the fact that assigning sensitivity labels with the Graph SDK is in a sort of "public preview" state, what are the current limitations around ...
Alistair Jones's user avatar
1 vote
1 answer
613 views

How to set security level in outlook

Hi I am developing a functionality that sends emails to outlook accounts under company domain. I am using javax.mail: MimeMessage msg = new MimeMessage(session); msg.setRecipients(&...
Farrukh Nabiyev's user avatar
1 vote
0 answers
310 views

How do I set the proxy for the MIP SDK for C# .NET Framework?

I am having issues setting the proxy for the MIP SDK, following the documentation found here. My application uses the Microsoft.InformationProtection.File nuget package to interact with the MIP SDK. ...
Damien's user avatar
  • 123
0 votes
1 answer
165 views

MIP iOS SDK error with libmat.a static library

I am facing following error when integrate latest MIP iOS SDK version 1.12.61 in my iOS project. (But works fine with previous release 1.11.72) Undefined symbols for architecture arm64: "...
SPoul's user avatar
  • 11
0 votes
2 answers
944 views

VSTO Sample code For Sensitivity label Ribbon Item OnClick Events in C#

I need to get changes to a sensitivity label done by clicking the Ribbon item in Microsoft Word. Does anyone have sample code on catching event changes for sensitivity labels in particular for VSTO C#?...
lesleey86's user avatar
3 votes
1 answer
262 views

MS MIP SDK 1.11.72 file_sample "Segmentation fault" on CentOS 7

When I run following command with real credentials to get labels I see "Segmentation fault" ./file_sample --clientid fff --username fff@fff --password '!fff -l Here is the backtrace: (gdb) ...
Alexey Yakimovich's user avatar
1 vote
1 answer
252 views

AD RMS with Mobile Device Extension for on-prem rpmsg decryption fails with "The service didn't accept the auth token"

I am using the MIP SDK to try to decrypt rpmsg files. I have this working in my environment, but I cannot get it to work in my customer's environment. At this stage, the call to create a file handler ...
Seth Hallem's user avatar
1 vote
1 answer
268 views

Parsing a restricted Word file

I am working on a Windows standalone application. [ I can not disclose the name as per our company policy] I installed Azure Information Protection Client. Then I protected the Word file with the ...
Rohit 's user avatar
  • 11
1 vote
1 answer
956 views

MIP SDK fails with an error when attempting to decrypt rpmsg using ADRMS and the MDE

I am trying to decrypt an rpmsg file received from inside my organization that has been encrypted with RMS. I have installed AD RMS and the MDE. I am using the MIP SDK for C# version 1.11.72. ...
Seth Hallem's user avatar
0 votes
1 answer
508 views

Create MIP protection templates or labels

We are using MIP SDK to protect our files (encryption with templates and ad-hoc configurations). After a long search, I didn't find any way to create new templates or heaven labels. Do you know if is ...
Guy Ben Mayor's user avatar
0 votes
1 answer
358 views

Decrypting an email that you received from outside your organization using MIP

I am currently attempting to decrypt protected Emails i receive using the MIP sdk. My current problem is that while I am currently able to decrypt mails that I receive from people within my own ...
Thomas Petersen's user avatar
0 votes
1 answer
2k views

C# - Add MIP specific headers to MailMessage

I have been trying to apply a sensitivity label and send an email using MIP and MailMessage. Based on the MipSdk-DotNet-Policy-Quickstart project, I added the option metadata Enabled: True and SiteId: ...
Alberto's user avatar
0 votes
1 answer
716 views

Can we use MIP SDK to apply sensitivity labels to SharePoint Online files?

Can we use MIP SDK to apply sensitivity labels to SharePoint Online files. If yes, please provide the reference/sample code to apply the sensitivity label.
Krunal Kadam's user avatar