How to anonymise a Slack export: files, fields and tools

By Plety. Updated

To anonymise a Slack export, work on a copy inside the company's own systems, map the files and fields that hold personal data, replace user IDs with consistent pseudonyms, find names, emails and phone numbers in message text with detection tools, strip file links, then test what is left. Message text is the hard part, and some risk of identification remains.

What is in a Slack export?

A Slack export is a zip file of JSON files: reference files for the whole workspace, plus one folder for each conversation holding a file for each day with messages. As of November 2026, Slack's help page on reading exports lists channels.json, users.json and integration_logs.json in every export, and dms.json, groups.json (private channels) and mpims.json (group direct messages) only in exports of all channels and conversations. On Enterprise, the members file is called org_users.json.

Each message carries a type, the sender's user ID, the text and a timestamp, and may carry attachments, reactions and file links. Slack says JSON exports do not contain any files from the workspace: the file links direct back to the workspace's files. It also says the export does not distinguish thread replies from messages sent to a channel, and that edits and deletions appear only if the retention policy keeps them. Getting the export itself is covered at https://plety.net/about/guides/how-to-export-slack-workspace-data.

Which parts of a Slack export hold personal data?

Personal data sits in three places: the members file, the user IDs attached to messages, reactions and member lists, and the message text. The table maps each part of the export to what it holds and a usual treatment.

Personal data in a Slack export, and how it is usually treated
Part of the exportPersonal data it holdsUsual treatment
users.json (org_users.json on Enterprise)Member details; Slack's user object includes real_name, display_name, email, phone, title, pronouns, status text, time zone and profile photo linksRemove it, keeping only a separate table of user ID to pseudonym
user field on each messageThe sender's Slack ID, which links back to the members fileReplace it with the sender's pseudonym
text fieldAnything people wrote, plus mentions written as <@U012AB3CD> and email links written as <mailto:...>Swap mention IDs for pseudonyms, then run detection tools
reactionsThe IDs of people who reactedReplace the IDs, or keep only the count
message_changed and message_deleted entriesEarlier text in a previous field, and an editor_idDrop them, or treat the earlier text like any other text
files and canvasesLinks back to the workspace's files, and download links in canvases.jsonRemove the links, and review any files separately
channels.json, groups.json, dms.json, mpims.jsonMember ID lists, and channel names that may contain people's or clients' namesReplace member IDs and rename channels
integration_logs.jsonRecords of app activity in the workspaceUsually removed

How do you anonymise a Slack export, step by step?

Work through the export in this order, on a copy held inside the company's own systems, so the original never leaves its control. Plety never holds, views or passes on records, so this work is done by the company or by a supplier working under its instructions.

  • Step 1: Copy the zip into a restricted folder and note its date range and the Slack plan, so every later check starts from the same point.
  • Step 2: Take out conversations that will not be licensed at all, such as HR, legal, health or client channels, before any other work.
  • Step 3: Build a table that maps each Slack user ID to a random pseudonym, and store it apart from the export.
  • Step 4: Replace IDs everywhere they appear: the user field, mentions in text, reactions, editor_id and channel member lists.
  • Step 5: Remove users.json and integration_logs.json, and rename channels whose names include people or clients.
  • Step 6: Run detection tools over every text field, including earlier text kept for edited and deleted messages, and replace what they find with labels such as [PERSON] or [EMAIL].
  • Step 7: Remove every file and canvas link.
  • Step 8: Check a hand-labelled sample, record what the tools missed, and decide whether the result is anonymous or still pseudonymised.

Which tools find names and email addresses in Slack messages?

Open-source detection libraries find most names and contact details in message text, and Presidio is one that also reads JSON. Presidio's list of supported entities says email addresses are found by pattern match, context and RFC-822 validation, phone numbers by custom logic, pattern match and context, and people's names by custom logic and context. It also covers UK entities such as NHS numbers, which it checks with a checksum, National Insurance numbers and postcodes.

Presidio Structured applies the same detection to structured and semi-structured data, including JSON. Its documentation says nesting objects in lists is not yet supported in its automatic JSON analysis, and Slack's day files are lists of messages, so the simpler route is to loop over the messages and analyse each text field. The documentation also warns that sensitive data might not be automatically detected in some cases.

Mentions need no detection model. Slack's developer guide to formatting message text gives the mention syntax as the user ID inside <@ and >, so mentions can be matched exactly and swapped for pseudonyms. A wider comparison of detection tools is at https://plety.net/about/guides/pii-redaction-tools-for-ai-training-data.

What stays risky after a Slack export is anonymised?

Message text stays risky, because people describe themselves and each other in ways no tool labels. The ICO (now formally the Information Commission) says techniques for quantitative data do not generally work for qualitative or unstructured data, and that anonymising qualitative material can be time-consuming. A message such as 'back from paternity leave, thanks all' can single out one person in a small team.

Consistent pseudonyms carry a second risk. The ICO says pseudonymised data is personal data in the hands of someone who holds the additional information, and may be anonymous information in another organisation's hands if that information is not shared with it. A buyer that can read five years of messages under one pseudonym can still build a picture of that person; the ICO calls combining multiple records about the same person linkability.

The ICO's test is whether identification is sufficiently remote, considering the means reasonably likely to be used by a motivated intruder, and it says the decision must be documented, justified and kept under review. Its pseudonymisation guidance is under review following the Data (Use and Access) Act 2025. Under section 171 of the Data Protection Act 2018, knowingly or recklessly re-identifying de-identified personal data without the consent of the controller responsible for de-identifying it is an offence, subject to defences.

Questions

Should direct messages go into an anonymised export?
Leaving them out lowers the risk, because private conversations can hold more personal detail than channels, and Slack releases them only on application. If they are included, keep a record of the basis Slack approved with the export.
Is hashing Slack user IDs enough?
Plain hashing is weak, because anyone with the original IDs can hash them again and match the results. The ICO advises against hashing that uses no additional data and against outdated algorithms such as MD5 and SHA-1, and describes tokenisation, which replaces identifiers with random tokens.
What about files people shared in Slack?
The JSON export holds only links back to files, so any files to be licensed are collected separately and need their own review. Images and PDFs can hold names that text tools never see.
Does Slack offer a built-in way to anonymise an export?
Slack's help page on reading exports, as of November 2026, explains the files and fields but describes no step for removing personal data, so de-identification is done afterwards with separate tools.

Want to know what your records could fetch?

Email Herman or book a 30-minute call. We tell you which buyers fit before anything else happens.

Sources

This page is general information, not legal advice. Take advice on your own company's records and contracts.

Read next