AI in Practice / Automating Work
Let AI Agents Audit Your IT Inventory, Access Permissions and Backups
2026-12-05
In IT administration, there is a kind of work that is all about looking things up and comparing them: building an inventory, listing who has granted which permissions, confirming that backups really match the originals. We hand that work to AI agents. When people do it, it gets postponed, and even when it gets done, things slip through. We set two conditions when we delegate. The agent must always leave the evidence behind its comparisons. And before any step that is hard to undo, such as deleting or releasing something, a person makes the call. Here are four real examples of how we do it.
IT audits tend to stall under the weight of more urgent work. Nobody touches them while nothing is broken, and by the time something breaks, the information is out of date. Opening documents one by one and checking them against another list is also work where the human eye always misses something.
This work is less about judgment and more about being thorough. So we let AI agents read the documents and system data, compare them, and turn the result into a list. People decide what to check, look at what comes back, and decide what to do next.
Mapping operations: turning scattered documents into a process description
The first example is documenting the IT department's operations at a client company. A process description and flow diagrams already existed, but some tasks were missing and others were only partly written. The goal of the second edition was to close those gaps.
The raw material was records pulled through the API of an issue-tracking tool, plus existing documents in Google Drive. First, we had the AI agents define the conditions for calling the document complete. Only then did we have Codex produce the descriptions and flow diagrams process by process. In the end, the work was organized into 8 processes and 29 sub-processes, delivered in three formats: Word, PowerPoint and HTML.
Alongside the writing, we built the checking. The build step was linked to validation scripts that automatically look for banned words and broken formatting. The gaps and half-finished entries from the earlier edition were resolved, and the final version passed review with zero findings and was confirmed locally. Deciding the conditions for completeness before asking for the output was the single most effective way to reduce omissions.
Auditing access: which apps have permission, and who granted it
The second example, at the same company, was finding out which employees had allowed outside apps to connect to their accounts. When someone clicks "Allow" for an app on their Google account, that app can reach company data. But simply looking at the admin console does not give you a list of who allowed what.
So we built a GAS script that reads the audit logs, links each connected app to its users, and writes the result to a spreadsheet. The API for pulling audit logs has limits and cannot return everything at once. The script therefore reads the logs event by event, and if it runs out of time, it picks up where it left off.
We had Codex review the script four times. We fixed the high-priority findings one by one, confirmed that every test passed, and only then installed it in that company's environment. The access audit can now be run at any time. Permissions grow quietly in the background, so we chose to build a tool that can be run again and again, not a one-off investigation.
Backups and missed deployments: match the counts before you move anything
The third example is cleaning up our own computer. We moved client work that had been sitting on the desktop into Google Drive. There were more than 40,000 files. After copying, we had the AI agent compare the file counts and file sizes on the desktop and in Drive, and confirm that every single file matched.
Only after the match was confirmed did we move the originals, and even then to the trash rather than deleting them outright, so that any mistake could still be reversed. The one file left over at the end was compared byte for byte, copied to Drive, and moved to the trash after I approved it. The rule was simple: nothing moves until the comparison results are in.
The fourth example is code that never made it to where it should be. When the code for internal systems lives in several places, you end up with drift, where a fix lands in one place but not the other. We had the AI agent compare the file history across all branches and pinpoint where things had drifted apart. The fixes were created as pull requests, checked with regression tests, and seven of them were merged on GitHub.
We also had it write a script that detects drift before deployment. The existing monitoring had a bug of its own, and that was fixed too. Instead of fixing things once and walking away, we leave behind a mechanism that notices the next drift on its own.
The lines we keep when delegating
What the four examples have in common is that the AI agents are trusted to look things up, compare, and draft the fixes. Right before any step that is hard to undo, such as deleting, merging, or installing in a live environment, a person reviews the comparison or test results and decides.
- Comparisons must leave evidence that can be checked later, such as matching counts or matching contents
- Nothing is deleted outright; it first goes somewhere it can be recovered from
- Separate from the work of building, everything passes through checks or review
- Nothing ends as a one-off; it is left behind as a script that can be run again
Because these lines are in place, we can hand a large share of the work to AI agents without much worry about accidents. On the other hand, comparisons that leave no evidence and deletions that are not verified are never delegated, however fast they might be.
What leaders should decide first
Before starting this kind of audit, there are three things a leader should decide.
The first is what to audit. Operations, outside apps with access, where data is stored, system settings. Do not try everything at once; pick the one that worries you most. The second is the condition for calling it complete. Does every item need to match, or is it enough that the main operations are covered? Without that condition, the AI agent will not know where to stop. The third is which steps a person must stop and approve. Deleting, releasing, sending something outside. Put a human approval right before each of them.
Once those three are decided, the work of looking things up and comparing them can go to AI agents. People can then focus on reading the resulting lists and deciding what to fix next.