Skip to content
All publications

I Eliminated Quarterly Access Reviews From My Cloud Environment. Here's How.

How treating permissions as infrastructure — not tickets — made hundreds of hours of manual reviews disappear.

AzureMicrosoft EntraIdentityRBACPIM

Originally published on Medium. Reproduced here in full.

A new engineer joins your team. They need access to cloud resources. So you file a ticket. An admin manually adds them to security groups. Another ticket grants role assignments. Weeks later, they transfer to a different team — but nobody removes their old permissions.

Then comes the dreaded quarterly access review: hundreds of Excel rows asking “Does John Doe still need Contributor access to rg-platform-production?” You have no idea. John might have changed teams twice. The resource might be for a project that ended months ago.

You click “approve” anyway, because the alternative is breaking something.

If this sounds familiar, you’re not alone. This is how most organizations manage cloud access today, and it’s fundamentally broken. Traditional RBAC in the cloud suffers from three deep problems: permissions accumulate forever, periodic reviews depend on imperfect human memory, and organizational structure drifts further from the access state every day.

In past years, I’ve built something different — a system where organizational changes automatically become access changes, and where the access review process simply isn’t needed anymore.

Here’s what I learned.

The Insight That Changed Everything

The breakthrough was realizing that Attribute-Based Access Control (ABAC) and Role-Based Access Control (RBAC) aren’t competitors. They’re composable layers solving different problems.

ABAC answers: “Who belongs to which group?” — based on organizational attributes like department, team, and role.

RBAC answers: “What can each group access?” — based on declared resource ownership.

Chain them together through automation, and the entire access lifecycle becomes event-driven. No tickets. No spreadsheets. No quarterly fire drills.

The Four Layers

I built a closed-loop system with four layers, each feeding the next.

Layer 1 — Let HR Drive Identity. Dynamic security groups in Entra ID calculate membership automatically from user attributes — department, team, cost center. When someone changes teams, group membership updates on its own. No admin intervention needed.

Layer 2 — Declare Ownership in Git. Teams declare which cloud resources they own in version-controlled configuration files. Every change goes through a pull request with peer review. This creates a permanent, auditable record of who owns what — and why, because every PR has a description and an approver.

Layer 3 — Define Least-Privilege Roles as Code. Custom roles replace overly broad built-in ones. In my environment, this cut granted permissions by 60–80% compared to the standard Contributor role — without breaking a single workflow.

Layer 4 — Automate Time-Boxed PIM Assignments. CI/CD pipelines read the ownership declarations and create eligible PIM assignments. Nobody has active permissions by default. To do anything privileged, you must consciously elevate — and that elevation gets logged with who, what, when, why, and for how long.

Every assignment expires in a few days. Every day, the pipeline renews what should still exist. If ownership is removed from Git, the assignment expires on its own.

Why This Kills Access Reviews

Traditional access reviews ask the wrong question. They ask humans: “Does User X still need access to Resource Y?” — and then rely on memory, context, and good faith to get an honest answer.

My system asks a different question entirely: “Is Resource Y still declared as owned by Team Z in the Git repository?”

If yes, and the pipeline runs successfully — access is certified. Continuously. Automatically.

If no — assignments expire within days. No human has to remember to revoke anything.

Here’s the math that made my security team pay attention: traditional quarterly reviews meant four manual certifications per year, each consuming 100+ hours across teams. My system certifies access every time the pipeline runs — that’s 365 automated certifications per year. Not four manual ones. Three hundred and sixty-five automated ones.

When auditors ask “how do you know these people still need access?” the answer is simple: they’re actively maintaining ownership declarations in Git, approved through pull requests, with daily automated reconciliation proving those declarations are current.

Watch It Work

New engineer joins the team:

HR updates their attributes. Dynamic groups recalculate. The next pipeline run picks up the existing ownership mappings. The engineer can elevate to access their team’s resources.

Manual steps required: zero. Access review needed: never.

Engineer transfers to another team:

HR updates their attributes. Old group membership drops off. Old assignments expire within seven days. New group membership kicks in. New eligibility appears automatically.

Manual revocations required: zero. Access review needed: never.

The elegance is in the symmetry. The same mechanism that grants access also revokes it — because both are driven by the same source of truth.

The Results in Production

I deployed this across 40+ cloud subscriptions, 500+ resource groups, and 15+ organizational units. Here’s what a year of production operation looks like:

Full reconciliation takes under 20 minutes. After every run, declared ownership and actual access are 100% aligned. Custom roles reduced permissions by 60–80% versus built-in baselines. And the number that matters most: manual access requests have been eliminated entirely.

Zero standing privilege means every privileged action is an auditable, intentional event. That’s not just a security improvement — it’s a fundamentally different relationship between humans and cloud permissions.

What I’d Do Differently

This isn’t free. The upfront investment in IaC infrastructure, pipeline development, and dynamic group design is substantial. Your operations team needs to be comfortable with code-driven workflows — the cultural shift away from GUI-based administration is real and shouldn’t be underestimated.

The system also inherits the quality of your HR data. If attributes are stale or inaccurate, dynamic groups will reflect that. Garbage in, garbage out — but now the garbage is automated, which arguably makes it more visible and fixable, not less.

The short renewal window means that if your pipeline infrastructure goes down and stays down for longer, userslose access. My security team considers this a feature. My ops team has opinions.

The Takeaway

Access reviews exist because systems drift from their intended state. Build a system where declarative intent continuously enforces the actual state, making reviews unnecessary.

The paradigm shift isn’t technical — it’s conceptual. Stop thinking of access as something you grant and periodically check. Start thinking of it as infrastructure: declared as code, version-controlled, continuously reconciled, and automatically expired when no longer justified.

Once you make that shift, the regular access review spreadsheet becomes an artifact of a less automated age.

Managing cloud access at scale and drowning in quarterly reviews? I’ve been there. Drop a comment or reach out — happy to dig into specifics.

Also on Medium Read the original and join the discussion there