Scope the agent to named folders and new files only. Saving a new file into an approved folder can run at depth 3. Overwriting, moving, saving sensitive files where many people can read them, and creating sharing links are held or refused. Each saved file is recorded with its path, source and fingerprint, so revocation leaves a clean trail.
What is different about saving, compared with reading?
Reading a shared drive exposes the agent to what is there. Saving changes what everyone else sees. A file saved into a team folder becomes part of that team's working record. Someone will open it, rely on it, forward it. A file saved into the wrong folder may be visible to a hundred people who should not see it, and shared drives rarely tell anyone that happened.
Read access is the subject of giving an AI agent access to shared drives. This playbook covers the write side, which deserves its own grant even when the same service account does both.
The owners are the folder owners, usually team leads, and IT or workplace technology for the drive platform itself. Data protection and information security own the rules for where personal and confidential data may live.
Which capabilities should the agent get, and at what depth?
- Agent, depth 1: lists the target folder before saving, to check the name and avoid collisions.
- Agent, depth 3: creates new files in named folders. Reports, extracts, working papers and attachments the job produces, in folders listed in its bounds.
- Agent, depth 3: applies the naming convention and the sensitivity label the folder requires.
- Agent, depth 2: saves a new version of an existing file. Where the drive keeps versions, the agent can propose; a person accepts. Where it does not, the agent saves alongside with a new name instead.
- Agent, depth 2: saves files that contain personal or confidential data to any folder whose audience is wider than the job needs. A person confirms the location.
- Agent, depth 3: deletes or replaces files it created itself within the same working session, for example a draft extract it is regenerating.
- Refused for the agent: moving or deleting files others created, changing folder permissions, and creating sharing links, especially external ones.
| Step | The agent does | Depth | Stays with a person |
|---|---|---|---|
| Check folder | Lists contents, checks names | 1 | Nothing |
| Create file | Saves new file in named folder | 3 | Adding folders to the list |
| Name and label | Applies convention and label | 3 | Label disputes |
| New version | Proposes | 2 | Accepting |
| Sensitive file, wide folder | Proposes location | 2 | Choosing location |
| Own drafts | Replaces or removes in session | 3 | Nothing |
| Others' files, permissions, links | Nothing | refused | All of it |
Why only new files?
Overwriting is where saving becomes destructive. An agent regenerating "monthly_summary.xlsx" will, sooner or later, overwrite the copy a person annotated by hand. Version history may save you, but only if someone notices and only if the drive keeps versions for that file type.
Creating new files with a date or run identifier in the name avoids the problem entirely. It also produces a natural history: each run's output sits next to the last, and any one of them can be traced to the run that produced it. The cost is clutter, which is cheaper than a lost annotation.
Should a shared drive be the agents' shared memory?
Teams sometimes let several agents read and write the same folder as a way to pass work between them. It works until two agents save conflicting versions of the same fact, or one reads a half-written file. A drive has no idea which file is current or which agent is authoritative. If agents need to share state, use a mechanism designed for it, as discussed in keeping agents' shared memory consistent, and keep the drive for outputs that people read.
How does revocation work?
Revoking write access should be possible per folder and should take effect at once, in two places: the agent's bounds and the drive's own permissions. Either alone is not enough. Bounds stop the agent attempting the save; the drive's permissions stop the save even if something goes wrong in the agent.
Files the agent created stay after revocation. Decide in advance who owns them. If they belong to a service account that is later disabled, they can become orphaned and hard to manage. Transfer ownership to the folder's team as part of the revocation.
What is the audit trail?
The file as saved: path, name, size, label, a content hash and the time.
Where its contents came from. A summary built from the general ledger draws on a sealed source; one built from emailed spreadsheets draws on external data. The provenance travels with the file record so a reader can judge it.
The verdict and the deciding bound. A save into a folder outside the list shows as refused, with role scope as the reason. A sensitive file held for a person shows who chose the location.
Changes after saving. Versions the agent proposed, replacements of its own drafts, and the person who accepted each.
What should you measure?
- Files moved by people after the agent saved them. Each move suggests the wrong folder.
- Label corrections.
- Refused saves, by folder. A cluster usually means the job has grown beyond its bounds.
- Orphaned or unused outputs. Files no one opened in a month suggest the output is not needed.
Where does it usually go wrong?
The folder list is a parent folder. Granting a top-level folder grants everything under it, including sub-folders created later with tighter audiences. List the specific folders.
Attachments are saved unread. An agent that files email attachments from a shared mailbox saves whatever arrived, including malicious files. Scan them first, and keep the save rules aligned with how the agent sends emails from a shared mailbox, since both act for the same team.
Sharing links are created by default. Some drives generate a shareable link on save. Turn that off for the agent's account.
Certification skips the messy folders. Real folders have inconsistent names and old structures. Train and certify on them, following train, shadow, certify, widen.
Where Pryme fits
In Pryme, creating files and versioning files are separate capabilities, each scoped to named folders in the agent's role. Every save passes the minimum chain, and sharing outside the folder sits outside the role scope, so it is refused and recorded. Revoking a folder takes effect at the next action.
Questions people ask
Can the agent save to my personal drive?
Only if you grant that folder explicitly. Personal drives usually hold mixed content, so most teams keep agents to team folders.
What file types should the agent create?
The ones the job produces and people can review: documents, spreadsheets, text and PDF. Executable files and scripts should be refused.
How long should the agent's outputs be kept?
As long as your retention rules require for that kind of record. The agent should apply the folder's retention label, not decide retention itself.