Skip to main content
← Articles

How to remove outside access to client files when a matter closes

Co-counsel, experts and contract staff often keep access to your Microsoft 365 files long after the work ends. Here is how to find it and remove it.

T
ThinkOpen
November 19, 2026

Every matter or engagement brings in people from outside the firm. Co-counsel, expert witnesses, a client's in-house team, a contract bookkeeper for tax season, an outside reviewer. In Microsoft 365 they usually arrive as guests in a Teams team or SharePoint site, or as recipients of a shared folder link.

When the matter closes, the paper file gets closed. The access usually stays open. A guest account belonging to someone who has since left co-counsel's firm can still reach your folder if that person's old mailbox is ever taken over. A link that anyone can open, forwarded once in a prep email, still works for whoever has it.

This guide walks through finding that leftover access, removing it, and setting Microsoft 365 so it cleans up after itself going forward.

Why this matters for professional practices

The ABA's Model Rules, which most states adopt in some form, speak to this. Model Rule 1.6 asks lawyers to make reasonable efforts to prevent unauthorized access to client information, and Model Rule 5.3 was amended in 2012 to cover outsourced services as well as firm staff. The same ABA article lists supply chain and third-party compromises among the greatest threats firms face. It also notes that lawyers increasingly have contractual duties to protect client data, particularly for clients in regulated industries such as health care and financial services, and that cyber insurance policies may include required safeguards.

For tax practices, the FTC's Safeguards Rule guidance names tax preparation firms among the businesses it covers. It tells covered businesses to determine who has access to customer information and to regularly reconsider whether they still need it.

Whether and how any of these rules apply to your practice is a question for your attorney. The cleanup below is worth doing either way.

Why the access piles up

A few Microsoft 365 defaults work against you:

The fix, step by step

You need a Microsoft 365 admin account with rights to manage users and SharePoint. If your IT provider holds those accounts, send them this list and ask for a written summary when it is done.

  1. 1List every outside account. In the Microsoft 365 admin center, expand Users and choose Guest users. Copy the list into a spreadsheet and add three columns: client or matter, who invited them, and whether that matter is still open. Ask each responsible partner to mark every name keep or remove.
  1. 1Turn on guest expiration now, so new guests are covered. In the SharePoint admin center, go to Policies, then Sharing. Expand More external sharing settings and turn on "Guest access to a site or OneDrive will expire automatically after this many days." Pick a period that fits your typical matter or engagement. From then on, site admins get a weekly email listing guests due to expire in the next two to three weeks, plus a banner on the site. A guest who still needs access can be renewed. This setting does nothing for guests already in your system, which is what the next two steps handle.
  1. 1Remove guests from closed matters. On the Guest users page in the Microsoft 365 admin center, select each person marked remove and choose Delete a user. Microsoft's own guidance is to remove guests when you're done collaborating so they no longer have access to your organization. If a matter is under a hold or a client agreement has special terms, check with the responsible attorney before acting.
  1. 1Trim access on open matters. Some guests stay because the matter is open, but they only needed one site or one folder. Remove them where they no longer belong: on the SharePoint site, go to Settings, then Site permissions, and take them out of the site's groups; in Teams, remove them from the team's member list; for individually shared folders, open the folder's sharing details and remove them. The Guest Expiration panel under Site permissions only lists guests added after expiration was turned on, so older guests will not appear there.
  1. 1Rein in "Anyone" links. On the same Sharing page in the SharePoint admin center, under the advanced settings for Anyone links, require them to expire and limit them to view-only. When you shorten the expiration time, existing links update to the shorter limit. Consider setting the default link type to Specific people, so links work only for the people the sender names, inside or outside the firm. Microsoft notes this is the most restrictive option and can get in the way of broad internal sharing. For closed matters, open the folder's sharing details and delete any remaining links.
  1. 1Add it to your closing checklist. Put "remove outside access" next to the closing letter and the final invoice. Name one person who owns it, often the office manager, and set a quarterly date to re-run step one.

How to check it worked

  • The Guest users list is shorter, and every remaining guest maps to an open matter in your spreadsheet.
  • Copy an old "Anyone" link from a closed matter before you delete it, then open it afterward in a private browser window. It should be refused. If you tightened a site's sharing level instead, Microsoft says guests typically lose access within one hour, so test after that.
  • Reopen the Sharing page in the SharePoint admin center and confirm the guest expiration and Anyone link settings saved. Do not expect expiration emails right away. They only begin once a guest invited after the change is within two to three weeks of their expiration date.
  • Keep the spreadsheet. It is your record of the review, and it answers the "how do you remove access" question on the next client or insurer security questionnaire.

How long it takes

For a small or midsize practice, the first pass usually takes an afternoon for whoever holds the admin account, plus a few minutes of each partner's time to mark the list. Firms with many Teams and matter sites should plan on a full day. After that, removing access at closing takes a few minutes per matter, and the quarterly review takes about an hour.

When outside help is worth it

The ABA article notes that attorneys can meet these duties by knowing the requirements, learning them, or getting qualified help. Bring in help when:

  • The guest list runs to hundreds of names, or you find accounts nobody can explain.
  • You suspect a former guest opened files after their matter ended. That calls for a review of audit logs, and you should talk to your attorney and insurer about any notification duties before contacting clients.
  • Your sharing settings differ from site to site and you are not sure which ones take priority.
  • A client or insurer wants documented evidence of access reviews, and you need it to stand up to their questions.

About ThinkOpen

ThinkOpen is a managed IT, security and software firm in Los Angeles that works with businesses of 10-200 people. Our work is grouped as Defend (security), Run (managed IT and cloud) and Build (software and AI). If you want a second set of eyes on your firm's outside access, we offer a free consultation.

Sources

  1. Manage guest expiration for a site (Microsoft Support)
  2. Manage sharing settings for SharePoint and OneDrive in Microsoft 365 (Microsoft Learn)
  3. Manage guest access in Microsoft 365 groups (Microsoft Learn)
  4. FTC Safeguards Rule: What Your Business Needs to Know
  5. Employing Competent and Reasonable Safeguards (ABA Law Practice Today)

Ready for Clarity?

15 minutes. No sales pitch. Just a clear-eyed look at where you stand and what to do next.