How to remove sensitive data from an .mpp file before sharing it

This article is part of the guide The plan that holds: Microsoft Project best practices, symptom by symptom, nineteen things you can see in a plan and the move that reveals each one in thirty seconds.

You are about to send a plan outside the company: to a client, a subcontractor, a tender board, a support desk. On screen it is just a Gantt chart. The file behind it can also carry hourly rates, people’s names and e-mail addresses, internal notes, last year’s baselines and the folder it was saved in.

Hiding a column removes nothing: rate tables B to E, custom field names and folder paths stay in the file after the obvious clean-up, so the check has to be made on the bytes, not only on the views

This guide shows how to remove sensitive data from an .mpp file by hand: where it lives, the order in which to clear it, and how to check afterwards that it is really gone.

In short

  • Hiding a column or filtering a view removes nothing: the values travel with the file.
  • Microsoft Project has no Document Inspector. That tool belongs to Word, Excel, PowerPoint and Visio.
  • Clean a copy, then use Save As to a new file name. Saving over an existing file can leave old text inside it.
  • The file records the folders it was opened from and saved to: do the work in a neutral folder.
  • Check the result in the bytes, not only in the views.

First, the tool you will not find

Ask an AI assistant how to clean an .mpp file and you may be told to open File > Info > Check for Issues > Inspect Document. That is the Document Inspector, and Microsoft documents it for Word, Excel, PowerPoint and Visio. Project is not on the list, and its object model has no inspector of that kind either.

What Project does have is narrower: an option to remove personal information from file properties on save, in the Trust Center, on the Privacy Options tab, under Document-specific settings. It concerns the file’s properties, not the plan. Everything inside the plan is up to you.

Where the sensitive data lives

Hiding is the most common mistake. Removing the Cost column from a view takes it off the screen, not out of the file; the same goes for filters, collapsed summaries and hidden tables. These are the places that hold something, in the order worth clearing them.

WhereWhat it can give awayWhere to clear it
File propertiesTitle, subject, author, manager, company, keywords, comments; custom properties added by you or a templateFile > Info > Project Information > Advanced Properties, Summary and Custom tabs. The Title is also what the project summary task shows
TasksNames that mention clients, suppliers and products; notes; hyperlinksThe task sheet, and the Notes tab of each task
Custom fieldsValues in Text, Number, Cost, Date and Flag fields and outline codes. Also the field’s own name and lookup list, which stay when every value is empty: a column called «Client» is information by itselfRight-click a column heading > Custom Fields: rename the field to something neutral and empty its lookup table
ResourcesNames, initials, e-mail, group, code, notes. Each resource calendar is named after the personResource Sheet and Resource Information, or delete the resources you do not need to show
RatesThe Standard Rate column shows one rate: table A, today. Tables B to E, and any rate change dated in the future, stay behind when you clear itResource Information > Costs, one tab per table, A to E
Baselines and interim plansUp to 11 baselines, with their costs and work, and up to 10 interim plans of start and finish dates: every promise the plan ever madeClear Baseline, once for each baseline and interim plan in use
Links to other filesA master plan stores the path of each subproject; a plan that shares a resource pool stores the path of the poolSend a plan without them, or remove the links first
Folder pathsThe folders the file was opened from and saved to, which often include a Windows user name and a client’s nameNo field shows them: the procedure below keeps them neutral
The rate and path rows were checked on real plans with Project desktop; the menus follow Microsoft’s documentation.

The procedure, in order

  1. Copy the original into a neutral folder, under a neutral name, for example C:\Share\plan.mpp. In our tests every copy made with Save As still carried the full path of the file it was opened from, and the path of the folder it was saved to. Opened and saved in a neutral folder, it carried only that folder.
  2. Open that copy in Project, from the neutral folder.
  3. Work down the table above. If you clear work and costs, set the tasks to Fixed Duration first: with the default task types, removing work changes the durations you meant to keep.
  4. Turn on the privacy option: Trust Center, Privacy Options, Remove personal information from file properties on save. It is a setting of this file, so it travels with it.
  5. Use File > Save As, with a new file name in the same neutral folder. Not Save. Saving over an existing .mpp can leave the old text inside it, invisible in every view: on all three of our test plans, task names we had renamed were still readable in the saved file. Save As to a new file left none. If you prepare plans for outside readers every week, a dedicated MPP cleaner does this whole list in one pass: GanttShield for Microsoft Project, a tool we make (see the note at the end).
  6. Close the new file, reopen it and look again: the Resource Sheet, the Costs tab of one resource, the list of custom fields.
  7. Check the bytes, as in the next section, for the three or four words you would least like the recipient to read.

Check what is really inside the file

The views show what Project decides to show. To see whether a name is still in the file, search the file itself. Paste this into Windows PowerShell and put your own words in the last line:

function Test-MppText([string]$Path, [string]$Text) {
    $bytes = [IO.File]::ReadAllBytes($Path)
    $all = [Text.Encoding]::Unicode.GetString($bytes) +
           [Text.Encoding]::Unicode.GetString($bytes, 1, $bytes.Length - 1) +
           [Text.Encoding]::Default.GetString($bytes)
    $all.Contains($Text)
}
"Acme", "Rossi", "C:\Users" | ForEach-Object { "$_ : " + (Test-MppText "C:\Share\plan-shared.mpp" $_) }

False for every word is what you want. The function reads the text two ways because Project stores most text as UTF-16, two bytes per character, and a string can start on an odd byte. That is also why the quicker Select-String -Encoding Unicode is not enough: in our tests it missed a task name that was plainly in the file.

What this does not cover

  • The shape of the plan. Durations, dates, the number of tasks and the outline can say a lot on their own: a bid schedule shows how fast you think you can build.
  • The file name, which you choose, and the dates of creation and last save, which Project keeps.
  • Views, tables, filters and calendar exceptions you named yourself. Their names can carry a client or a person; look at them before you send.
  • Plans stored in Project Online or Project Server, whose enterprise fields follow other rules.

If the recipient only needs to read the schedule, an .mpp is the wrong format: a PDF of the view, or an Excel export of the columns they need, carries far less. Clean the .mpp when they genuinely have to work in it.

If something goes wrong

  • A rate is still there after you cleared Standard Rate. Open Resource Information > Costs and look at tables B to E, and at every row of table A: a raise dated next year is a second row.
  • The byte check still finds a name you replaced. The file was saved over rather than saved as new, or the name sits in a place outside the table: a view, a filter, a calendar exception. Rename it, then Save As again to a new name.
  • Durations changed after you deleted resources. Tasks that followed a resource’s calendar are now measured on the project calendar. Check the finish dates against the original before sending.

Frequently asked questions

Does Microsoft Project have a Document Inspector?

No. Microsoft documents the Document Inspector for Word, Excel, PowerPoint and Visio. Project has a single privacy option, which removes personal information from the file properties when you save, and leaves the content of the plan to you.

Is hiding the cost columns enough?

No. A view decides what is displayed, not what is stored. Anyone who opens the file can add the column back, and the values are there.

Why Save As rather than Save?

Because saving over an existing .mpp can leave the previous text inside the file, where no view shows it. Save As to a new name writes a new file.

How do I know I have not missed anything?

Search the saved file for the words that matter to you, as shown above: client names, people’s surnames, your own user folder. It proves what is absent from the file, which no view can.


Disclosure: this is the blog of a company that makes project-control software, so take the paragraph below for what it is. Nothing in the method above requires our tool, or any tool: Microsoft Project and a few lines of PowerShell cover all of it.

If you do this often, GanttShield for Microsoft Project applies part of this list to a copy of the plan in one pass: it renames tasks and resources, empties task notes and the document properties, removes rates, costs and all eleven baselines, and never touches the original. In the .mpp copy it does not cover every row of the table — custom text fields, interim plans and folder paths among them. Since version 1.2.0 it can also write the copy as Project XML, without Microsoft Project: that output also empties the custom fields (Text1–30, Date1–10, Start and Finish1–10, where interim plans are kept, Duration1–10, Flag1–20) and their names, and carries no folder paths. Either way, the byte check above still applies.

#MSProject #DataProtection #ProjectManagement #HowTo

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top