Dev.to Security πŸ” Cybersecurity πŸ‘ 0 πŸ“– 6 min read

SaaS Access Reviews: A Practical Checklist for Growing Companies

Every new SaaS subscription comes with its own user list. Nobody plans for those lists to drift away from HR records, but they do, one contractor and one "temporary" admin at a time. A periodic access review is how you c

Every new SaaS subscription comes with its own user list. Nobody plans for those lists to drift away from HR records, but they do, one contractor and one "temporary" admin at a time. A periodic access review is how you catch that drift before an auditor or an attacker does.

The short version: compare the active accounts in each app against an authoritative roster of employees and contractors, check their privileges, and record a decision from the app owner on every account that doesn't line up.

This piece is adapted from a MeritSOLVβ„’ guide on SaaS access reviews. The scenario, numbers and code below are illustrative, so adapt the field names to your own exports.

Start with the apps that can hurt you

You don't need to review all 40 subscriptions in the first pass. Start with the applications that hold customer data or grant administrative rights over something important. CRM, finance, source control, cloud consoles, the identity provider itself.

Build a small application register first. For each app, capture:

  • Business criticality
  • Provisioning method (SCIM, SSO just-in-time, manual)
  • Identity provider, if any
  • Named business owner
  • Whether contractors use it
  • Which roles count as privileged
  • Date of the last review

The owner column matters most. If an app has no owner, nobody can approve or reject the exceptions you're about to find, and that gap is a finding on its own.

Pull read-only exports, and note when you pulled them

Get tenant-level user and role exports through an approved, read-only path. Most admin consoles have a CSV export, and many have an API. Whatever you use, record the snapshot time, confirm you got every page of results, and write down which fields the tool simply doesn't provide. Some apps don't expose last-login. Some don't separate disabled from active users cleanly. Those limits belong in the review notes, not in a footnote nobody reads.

A simple folder layout keeps the evidence traceable:

access-review-2026-q4/
  roster/hr_roster_2026-11-20.csv
  roster/contractors_2026-11-20.csv
  exports/crm_users_2026-11-20T14-05Z.csv
  exports/github_members_2026-11-20T14-12Z.csv
  exports/aws_iam_identity_center_2026-11-20T14-20Z.csv
  out/

Timestamped file names sound fussy until someone asks which export a decision was based on.

Reconcile against the roster

Here's a small Python script that compares one app export against HR and contractor rosters and sorts every account into a bucket. It assumes each file has an email column and the app export has role, status and last_login columns. Change those names to match your data.

import csv
from datetime import datetime, timedelta, timezone
from pathlib import Path

PRIVILEGED_ROLES = {"admin", "owner", "tenant_admin", "billing_admin"}
DORMANT_AFTER = timedelta(days=90)  # pick a window that matches your policy
NOW = datetime.now(timezone.utc)

def load(path, key="email"):
    with open(path, newline="", encoding="utf-8") as f:
        return {row[key].strip().lower(): row for row in csv.DictReader(f)}

def classify(acct, roster):
    email = acct["email"].strip().lower()
    person = roster.get(email)
    flags = []

    if person is None:
        if acct.get("type") == "service":
            flags.append("service_identity")
        elif "@" not in email or email.split("@")[0] in {"team", "shared", "ops", "admin"}:
            flags.append("possible_shared_login")
        else:
            flags.append("no_roster_match")
    elif person.get("status") == "terminated":
        flags.append("possible_orphan")

    if acct.get("role", "").lower() in PRIVILEGED_ROLES:
        flags.append("privileged")

    last = acct.get("last_login")
    if last:
        seen = datetime.fromisoformat(last.replace("Z", "+00:00"))
        if NOW - seen > DORMANT_AFTER:
            flags.append("dormant")
    else:
        flags.append("last_login_unavailable")

    return flags

def review(app_name, export_path, roster_paths, out_dir="out"):
    roster = {}
    for p in roster_paths:
        roster.update(load(p))

    accounts = list(load(export_path).values())
    rows = []
    for acct in accounts:
        flags = classify(acct, roster)
        if flags and flags != ["last_login_unavailable"]:
            rows.append({
                "app": app_name,
                "email": acct["email"],
                "role": acct.get("role", ""),
                "flags": ",".join(flags),
                "owner_decision": "",
                "ticket": "",
                "decided_by": "",
                "decided_on": "",
            })

    Path(out_dir).mkdir(exist_ok=True)
    out = Path(out_dir) / f"{app_name}_exceptions.csv"
    with open(out, "w", newline="", encoding="utf-8") as f:
        w = csv.DictWriter(f, fieldnames=rows[0].keys() if rows else ["app"])
        w.writeheader()
        w.writerows(rows)

    print(f"{app_name}: {len(accounts)} accounts, {len(rows)} exceptions, written to {out}")

review(
    "crm",
    "exports/crm_users_2026-11-20T14-05Z.csv",
    ["roster/hr_roster_2026-11-20.csv", "roster/contractors_2026-11-20.csv"],
)

Notice what the script doesn't do. It never disables an account. It writes a queue with empty decision columns, because the person who decides is the app owner, not whoever ran the script.

Email matching is also the weakest part of any reconciliation. People change names, use aliases, or have a different username in one tool. Normalize carefully and treat a non-match as "needs verification", not "intruder".

Read the exceptions like a reviewer

Picture a company with 220 active workers and 17 SaaS apps. The reconciliation turns up 19 accounts with no obvious current employee behind them. That isn't 19 breaches. Some will be contractors who were missing from the roster file, some are service identities, and some are the same person under a different username. The right output is a disposition queue.

Exception Example Evidence that closes it
Possible orphan Former employee still active in the CRM HR departure date plus an owner-approved disable record
Privilege drift Marketing user still holds tenant admin Approved role baseline and the downgrade ticket
Service identity Integration account with no human email Named system owner, purpose, credential rotation method and compensating controls
Shared login Team shares one vault entry for an app Named accountable owner and a remediation decision

Keep local, federated, service and break-glass emergency accounts in separate groups. They have different risks and usually different owners. Break-glass accounts in particular should exist, be locked down and be monitored. Flagging them for removal is a good way to lose them right before you need one.

Report coverage honestly

The number people want is "how much did we review". Calculate it plainly:

coverage = reviewed in-scope identities / total in-scope identities

Report unmatched records and excluded records as their own counts next to that figure. If you left an app out because the export failed, say so. A 100% figure built on a quietly narrowed scope is worse than an honest 80%.

A spreadsheet isn't proof

The most common mistake is treating the exported spreadsheet, marked "reviewed", as evidence that an owner actually looked at the access. It isn't. What holds up later is:

  • Who approved each disposition, and when
  • The ticket or change record for any removal or downgrade
  • Any accepted risk, with the person who accepted it
  • A spot-check afterward confirming the change was actually applied

Also keep the review and the remediation as separate steps. During an evidence-only assessment, don't revoke anything directly unless the owner authorizes that as its own change. Pulling access mid-review breaks integrations and makes the evidence trail harder to follow.

A quick acceptance test

Hand the output to someone outside the team that ran the review. Ask them to find the latest exceptions log, name the owner of one app, explain the biggest unresolved issue and say what the next authorized action is. If any of those answers depends on someone's memory, the handoff isn't finished.

Checklist

  • [ ] List business applications, their owners and identity providers
  • [ ] Pull approved read-only exports with last-login and privilege fields where available
  • [ ] Compare users against the employee and contractor roster
  • [ ] Flag dormant users, shared accounts, elevated permissions and missing owners
  • [ ] Assign remediation decisions to app owners and keep the evidence
  • [ ] Confirm who approves the final output and how corrections get handled
  • [ ] Archive the approved version and set the next review date

If the same mismatches keep coming back every quarter, the problem is upstream in your joiner, mover and leaver process. Fix the trigger as well as the account.

Further reading

Originally published at meritsolv.com.

πŸ“° Read the original article on Dev.to Security

Originally published by Dev.to Security. Aggregated on AIWithGhost for educational purposes β€” full credit and traffic to the original publisher.