Skip to content
Back to skills

Rbac Permissions

ASecurity

Enforce least-privilege RBAC and object-level authorization consistently on every API endpoint and background action

  • 5 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added November 30, 2026
developmentapibackendsecurity

Works with

  • api

Security analysis

A100/100

Scanned November 30, 2026

npx -y skills add AdityaaaTiwari/ANVIL --skill rbac-permissions --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Rbac Permissions?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Rbac Permissions
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/adityaaatiwari-rbac-permissions/badge)](https://www.skillsdirectory.com/skills/adityaaatiwari-rbac-permissions)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
description: Enforce least-privilege RBAC and object-level authorization consistently on every API endpoint and background action
profile: standard
tags: auth, security, backend, architecture
---

# RBAC permissions

Use when implementing user roles, permission scopes, admin routes, or team/workspace access control.

## Server-side enforcement
- Deny by default on all routes and mutations; check permissions explicitly against server-side session/membership state rather than hiding UI buttons alone.
- Enforce both role/action permission (`project:write`) AND resource ownership/tenant scope (`IDOR` protection) in the same centralized authorization guard or repository query.
- Avoid raw string comparisons scattered in controllers; use typed permission constants and shared policy helpers covered by unit tests.

## Role safety and auditing
- Prevent privilege escalation: callers must never assign roles higher than their own permissions or mutate role fields via mass-assignment DTOs.
- Record an immutable audit entry (actor, target, old role, new role, timestamp) on every permission, role, or ownership change.

## Verify
Write negative tests (`403` / `404`) for unauthenticated users, lower-role members, privilege escalation payloads, and cross-account object IDs on every endpoint.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in development →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.