Unprotecting an protecting Office files RRS feed

  • Question

  • Hi!

    A while ago I have written a service 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 they had before.

    I've got the protection lizense/information by calling FileHandler.GetserializedPublishingLizense and GetSerializedProtectionInfo, then I've called RemoveProtection and in the end i've reset the protection by calling SetProtection with the results that I've got earlier.

    Now I try to do the same with the SDK version 1.6.113 without success.

    Every funcion changed. Now I cannot even create a FileEngine without an identity or a cloud (whatever a cloud is).

    If I set an identity (the mail address is not important), I can create a FileEngine.

    Then I get the protection description by getting the handler.Protection.ProtectionDescriptor-property.

    I am able to unprotect the file and to change it. But when I try to reprotect it (using the protection descriptor) the protection is messed up.

    What am I doing wrong?

    Any help would be appreciated!Cheers Alex

    Saturday, June 6, 2020 3:32 PM