DriftLock

How to Enforce Least Privilege for AI Assistant Access

Grant the narrowest scope the task actually needs rather than the broadest an app offers: read-only before read-write, a single folder or inbox before the whole drive, a dedicated service account before an employee's own login, and a time-limited connection before a permanent one. After a trial period, check what scope the assistant actually used and revoke anything it never exercised, since unused access is pure downside with no corresponding benefit.

Every AI assistant that connects to a new app — a file store, an inbox, a CRM, a ticketing system — asks for a permission scope during setup, and the default offered is almost always broader than the task requires. The fix isn't a special tool; it's a short set of questions asked before you click approve, applied consistently every time a new connection is requested.

Start from the task, not the app's default

App vendors design OAuth scopes to cover every use case their integration supports, not the one specific task your team has in mind. "Full access to Drive" is one checkbox; "read access to this one shared folder" usually requires a bit more setup work, which is exactly why it gets skipped under deadline pressure. Before granting anything, write down the actual task: summarizing one folder of reports, drafting replies in one shared inbox, reading tickets in one queue. The scope you request should map to that sentence, not to the app's full capability list.

A practical scoping checklist

Question Why it matters
Does it need write access, or just read? Read-only can't delete, send, or modify anything even if the assistant is manipulated into trying
Does it need the whole system, or one folder/inbox/queue? Scoping to a subset limits blast radius if the connection is compromised or misused
Does it need a human's identity, or a dedicated service account? A service account can be monitored, scoped, and revoked independently of any employee's own access
Does it need permanent access, or a time-boxed connection for a project? Expiring access removes the "we forgot this was still connected" risk entirely
Does it need to act immediately, or can actions queue for approval? Separating "read and propose" from "act" catches mistakes before they become incidents

None of these questions require deep technical expertise to answer — they require someone to actually ask them instead of accepting the first permission dialog the app shows.

Use a trial period, then true up

It's common to overestimate what an integration needs on day one because nobody wants to re-request access later if they got it wrong. Flip that assumption: grant a slightly conservative scope, run it for a few weeks, and look at what the assistant actually touched. If it never wrote to a folder it had write access to, pull that back. This true-up step matters more than getting the initial scope perfect, because real usage patterns are a better guide than guesses made during setup.

Separate the identity from the person

When an AI assistant connects using an employee's personal login, its access is exactly as broad as that employee's — which is usually far more than the assistant's task requires, and which makes the connection impossible to revoke without also locking the employee out of their own account. A dedicated service account, scoped specifically to what the assistant does, can be reviewed, limited, and cut off independently. It also makes audit trails legible: actions taken by the assistant show up under an identity that's clearly the assistant, not mixed in with a person's own activity.

Review on a schedule, not just at setup

Least privilege granted once and never revisited drifts back toward over-permissioned within a few months, as scopes get widened to fix a one-off error and never narrowed back down. A recurring review — quarterly is reasonable for most companies — that checks every AI-to-app connection against what it's actually used for catches that drift before it becomes the normal state.

Where a policy layer helps

Doing this consistently across one assistant and one app is a checklist. Doing it across every assistant — Claude Code, Copilot, Cursor, browser-based AI, Claude Desktop — and every app an employee might connect it to, across every laptop in the company, is a governance problem that outgrows a checklist fast. That's the gap a company-wide policy console is built to close: a central point where IT sets what scopes are allowed for which tools, rather than relying on each employee to ask the right questions at setup time.

What to take away

  • Default app permissions are broader than most AI tasks need; scope to the task, not the app's full capability list.
  • Prefer read-only, single-folder, time-boxed, service-account access over full, permanent, personal-identity access.
  • Run new connections on a trial period, then revoke whatever scope went unused.
  • Review existing connections on a schedule — permissions widened to fix a problem rarely get narrowed back down on their own.
  • At company scale, centralized policy across every assistant and every laptop beats relying on individual judgment at setup time.

Related