Forum Discussion

AlexNbg72's avatar
AlexNbg72
Copper Contributor
Jun 12, 2020
Solved

AIP - Unprotecting an protecting Office files

Hi! A while ago I have written a service (in C#) to connect to Azure Information Protection (with the SDK 1.2.153) to unprotect files, change them and reprotect them again with the same protection t...
  • Tom_Moser's avatar
    Jun 18, 2020

    AlexNbg72 

     

    Hi! This scenario functions a bit differently than you might expect. We refer to this as republishing and we've recently documented it here: https://docs.microsoft.com/en-us/information-protection/develop/quick-file-republishing-csharp

     

    Can you take a look at that and let me know if it answers your question? 

     

    The cloud or identity are required for service discovery. When you create the FileEngineSettings object, you must provide an object of Microsoft.InformationProtection.Identity as part of the constructor, or set it on the object after initialization. 

     

    If you don't have the identity of the user, then you must set the Cloud parameter on the FileEngineSettings object.

Resources