Professional firms · Workflow workbook
Secure file naming and routing for CPA and law firms: quarantine, naming rule, manifest
Route every inbound client file to the right client or matter folder with a naming rule, a quarantine lane for uncertain uploads and a manifest of every move.
- Starts when
- a client file arrives through email, a scanner or a bulk upload outside a client-specific portal request
- Done when
- the file renamed per the firm rule, stored in the correct client or matter folder with the right permissions, and logged in the manifest
- Never automate
- Automation never moves a file whose client or matter it cannot confirm, puts sensitive identifiers in a filename, or routes into a folder visible to a screened person.
- Planning time
- About 90 minutes to set up · Professional firms
- Works with
- SmartVault, ShareFile, TaxDome, Clio Manage, Microsoft 365, Zapier, n8n
1. Your starting point
Files arrive by portal, email, scanner and thumb drive with meaningless names, and staff rename and file them by guesswork. A hypothetical 12-person firm filing 800 documents a month at 90 seconds each spends 20 staff hours monthly on it and still cannot prove where a file went.
2. Who owns what
Use job titles if you will share this file.
| Role | Person or job title | Backup |
|---|---|---|
| Process owner (accountable) | ||
| Does the work day to day | ||
| Reviews and approves | ||
| Backup when the owner is out |
A records owner, usually the operations manager, owns the naming rule, category list and manifest review. A records coordinator works the review queue daily. The IT lead or managed service provider owns permission groups and malware scanning. In law firms, the general counsel or conflicts partner confirms screen permissions whenever a screen is created.
3. The procedure
Step 1. Land every inbound file in quarantine
Email attachments, scanner output and bulk uploads go to one restricted quarantine library. Check the real file type against an allowlist, enforce a size limit such as 50 MB, run a malware scan and flag password-protected files. Failures go to rejected within 5 minutes.
Step 2. Identify the client and engagement or matter
Use the upload context: portal account, request ID, scanner cover-sheet code or a staff assignment. Filenames and sender email are suggestions only. Anything short of one confident match goes to needs_review with the reason, assigned within 4 business hours.
Step 3. Assign a category from the controlled list
Choose from 15 to 25 categories such as 1099-B, bank statement, engagement letter or pleading. An AI classifier may suggest one, but identity documents, bank statements and anything legally sensitive need staff confirmation before routing.
Step 4. Rename to the firm convention
Build the name from client or matter ID, year or date, category, short descriptor and version, up to 100 characters. Strip names, account numbers and SSNs. If the name already exists, increment the version number and never overwrite the earlier file.
Step 5. Move, verify and check permissions
Move to the destination folder, confirm the SHA-256 hash matches, and confirm the folder's permission group, including any ethical screen. Never create a public or anyone-with-the-link share. A hash or permission mismatch returns the file to needs_review.
Step 6. Write the manifest and clean up after 30 days
Record original name, new name, hash, channel, destination, decision maker and time in a restricted manifest. Notify the client owner with a link. Purge the quarantine copy 30 days after verification, or per the firm's retention policy.
4. Service levels
| Item | Target | Owner |
|---|---|---|
| File lands in quarantine | Type, size and malware checks within 5 minutes | Automation |
| Auto-matched file | Renamed, moved and verified within 15 minutes | Automation |
| File needing review | Assigned within 4 business hours | Records coordinator |
| Unidentified file | Client or sender asked within 1 business day; escalated after 2 | Records coordinator |
| Manifest sample | 25 random rows checked weekly against destinations | Records owner |
| Folder permissions | Reviewed quarterly and when a lawyer or staff member is screened | IT lead or managed service provider |
5. Naming rule and messages
- Accounting: [ClientID]_[TaxYear]_[Category]_[Descriptor]_v[NN].pdf, for example C1042_2025_1099-B_Fidelity_v01.pdf.
- Legal: [MatterID]_[Category]_[Descriptor]_[YYYY-MM-DD]_v[NN].pdf, for example M2025-0187_Correspondence_OpposingCounsel_2025-09-14_v01.pdf.
- Categories come from a controlled list of 15 to 25 values. Maximum 100 characters. Letters, numbers, hyphens and underscores only.
6. File status rules
| Status | Meaning | Automation does | A person does |
|---|---|---|---|
| quarantined | Received, not yet checked | Runs type, size and malware checks | Nothing |
| rejected | Failed a safety check | Blocks the file and alerts IT | Contacts the sender if legitimate |
| needs_review | Client, matter or category uncertain | Suggests a match with a reason | Confirms or corrects the match |
| matched | Client and category known | Renames per the rule | Nothing |
| routed | Moved to the destination | Verifies hash and permissions | Nothing |
| verified | Destination copy confirmed | Writes the manifest row and notifies the owner | Spot-checks the weekly sample |
7. Information to capture
Use invented sample records while you plan. Keep real client data in your secure systems.
| Source field | Where it goes | Check | Our field name |
|---|---|---|---|
| email.attachment_name | manifest.original_filename | Stored only in the restricted manifest; never reused in the new name | |
| portal_account_id or request_id | routing.client_id | Must resolve to exactly one active client or matter; none or several means review | |
| detected_mime_type | routing.allowed_type | Checked from file content against the allowlist; extension alone is not trusted | |
| classifier.suggested_category | document.category | From the controlled list; sensitive categories require staff confirmation | |
| file_sha256 (before move) | destination.file_sha256 | Must match after the move; a mismatch blocks verified status | |
| destination_folder.permission_group | routing.access_check | Must equal the client or matter group, including screen exclusions | |
| generated_filename | destination.file_name | Pattern, 100-character limit and no digits matching an SSN or full account format |
8. Exceptions to design for
Tick each one once you have decided who handles it and how.
9. Rules that apply
Requirements vary by state and by firm. Confirm each point before you rely on it.
- Accounting firms: the FTC Safeguards Rule (16 CFR Part 314) requires access controls, encryption and monitoring for customer information. IRS Publication 4557 covers practical safeguards for tax professionals.
- Law firms: ABA Model Rule 1.6(c) requires reasonable efforts to prevent unauthorized access to client information, and comment 8 to Model Rule 1.1 asks lawyers to understand the risks of the technology they use. ABA Formal Opinion 477R discusses securing electronic client communications. Each state adopts its own version, so check the text in your jurisdiction.
- Ethical screens: when a lawyer is screened from a matter, folder permissions are part of the screen, so every routed file must inherit them.
This page describes an administrative process. It is not legal or tax advice; have a qualified professional review your firm's policies.
10. Measure it
Track four numbers: share of files routed without human review, median minutes in quarantine, misrouted files found per 1,000 (target zero), and files found with sensitive identifiers in their names.
Example (hypothetical): in a one-month pilot on email and scanner intake, 71 percent of 800 files route automatically, median quarantine time falls to 40 minutes, and the weekly sample finds no misroutes. Add the shared scanner next.
Estimate staff time with the firm automation ROI calculator, settle your intake channel with secure portal vs. email attachments and the Outlook secure intake handoff, and track the review queue in Operations Desk. Routed files later feed retention and deletion review.
| KPI | Baseline | Target | After pilot |
|---|---|---|---|
11. Acceptance tests
Run each test with invented records before the process touches real clients.
12. Where you are today
13. Your first 30 days
Keep going
- Tax document collection workflow for CPA firms
- Client document request workflow for law firms
- Records retention review for CPA and law firms
- Client access review checklist for CPA firms
- Read the full guide for this workflow
- Operations Desk: keep this procedure, its owners and its exceptions in one offline library with your other SOPs.