Salesforce Access Review Kit
From Clientell AI. Free to use and share.
Guide: https://www.getclientell.com/resources/salesforce-access-review-guide
Last checked: 28 Oct 2026.

What is in the kit
------------------
access-review-scope-and-signoff.csv  Fill in before you run a query. Scope, people, headline numbers, signatures.
access-review-workbook.csv           The findings register. One row per user per grant. Three made-up example rows to delete.
access-review-evidence-log.csv       Every file you hand the auditor: what it is, who ran it, when, where it is kept.
access-review-soql-pack.txt          Every query from the guide, one per line, numbered to match the guide.
export-access-review.sh              Runs the key queries with the Salesforce CLI and saves dated CSV files.
Checklist (PDF, two pages):          https://www.getclientell.com/downloads/access-review-checklist.pdf

Open the CSV files in Excel or Google Sheets. Keep each file as its own tab.

How to use it
-------------
1. Fill in the scope sheet. Name a reviewer and an approver who are two different people.
2. Run the queries on the as-of date (the SOQL pack or the script). Save each result.
3. Copy each holder into the workbook: one row per user per grant.
4. For each row, write the reason, the owner, the decision and the approver.
5. Before you remove access, save the undo file (query U.1).
6. Make the changes, re-run the same query, and write the after-check result.
7. Download Setup Audit Trail (it keeps 180 days) and Login History. Log every file.
8. Sign the scope sheet and set the next review date.

Notes
-----
- Every query only reads. None of them changes your org.
- Profiles, permission sets and permission set groups all show up in PermissionSetAssignment,
  because each profile owns a permission set. So query 4.2 covers profiles too.
- Groups: compare query 3.5 with 3.6. Both use the same filter (View All Data or Modify All Data).
  If a person is in 3.5 but not in 3.6, open the group in Setup and find out why before you
  record a cause. A muting permission set is one possible reason, not the only one.
- This kit is not legal or audit advice. Ask your auditor which evidence they accept.

The export script
-----------------
Each run writes to a new folder named after the org alias, the org ID and the date and time.
It never writes into an existing folder and never overwrites a file.
We checked three cases on 28 Oct 2026 with a stand-in for the sf command (not a live org):
1. Same org, run twice on the same day: two separate folders, the first one untouched.
   A second run in the same second is refused, and nothing is written.
2. Two orgs: one folder per org, each with that org's alias and ID in the name.
3. A query fails: the script stops with an error, deletes the half-written file and leaves
   RUN-FAILED.txt in the folder. Do not use that folder as evidence. Run again.
