How to decrypt IRM encoded file from SharePoint using Graph API and MIP SDK

レロワ ギオーム 5 Reputation points
2025-04-22T08:29:53.5066667+00:00

Hello, we have a SharePoint site containing a library that has IRM protection, so the files are all protected.

We have an application that needs to access said files, to read them and extract data from them. We usually did that using the SharePoint REST APIs and client-side object models (CSOM) but when trying that with the IRM protected files, we are getting a sort of a hash of the file, rather the file itself.

Our Azure application has the super_user delegated permission, but that does not seem sufficient.

We are currently exploring another option which would be to download the file with SharePoint REST APIs and client-side object models (CSOM) and then decrypt it using the MIP Protection SDK, but is this approach correct? I am doubtful whether the Microsoft Graph API is actually getting the encrypted file or just a random hash, and whether the MIP Protection SDK is capable of decrypting SharePoint IRM protected files.

SharePoint Development
SharePoint Development
SharePoint: A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.Development: The process of researching, productizing, and refining new or existing technologies.
3,604 questions
0 comments No comments
{count} vote

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.