Skip to content

Support IRM Excel Sheets #6

@MatthewSpofford

Description

@MatthewSpofford

Users that need to merge Excel spreadsheets will fail to use the merge application if the spreadsheet is encrypted with Microsoft's corporate IRM feature.

New Behavior

  1. User provides two spreadsheets
  2. Inspect the files, and determine if they are encrypted
  3. If they aren't, continue as normal
  4. If they are, (somehow) bypass the IRM encryption
  5. Then complete the same merge operations as before

IRM Bypass Ideas

Excel with COM (Windows only)

On Windows, the pywin32 package seems promising for interfacing with Excel with COM. Opening Excel directly, as long as the user is authenticated with a Microsoft account that is authorized for the IRMd sheet, will bypass the file encryption. Then, the merge operations could be performed with COM, instead of openpyxl.

MIP SDK

Microsoft offers a multi-platform SDK for working with Microsoft Information Protected files: https://learn.microsoft.com/en-us/information-protection/develop/concept-apis-use-cases?source=recommendations#file-sdk

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions