Write roles, permissions and grants as text and get the effective permission matrix, with unreachable permissions and indistinguishable roles named.
Waiting for a role policy
Write role, permission and grant lines, or load the example.
< means inherits from, so role manager < support gives manager everything support has. A permission named in a grant is not created implicitly — declaring them is what lets this tool tell you when a grant names something that does not exist, which is the most useful thing it finds.
Write a role policy to see what each role really ends up holding.
This is a model of a policy, not an audit of a system. It reads what you wrote here and nothing else: it cannot see your application’s actual checks, which users hold which roles, or whether a permission is enforced anywhere. A role model that is correct on this page and unenforced in code grants everything.
Inheritance makes privilege accumulate quietly: a permission added to a low role lands in every role above it, which is the mechanism behind most accidental over-granting. Review the effective sets rather than the grants, and keep the sensitive permissions out of inheritance chains entirely where you can.
RBAC Permission Matrix Generator runs entirely on your device — your policy is resolved in your browser and nothing about your role model is uploaded.
You’re on the Free plan. Compare plans
The input is text rather than a form because a role model is something a team argues about in a pull request. A form produces a picture and nothing to review; a few lines of text produce a diff, and the diff is what gets read.
What the tool adds is the part nobody computes by hand: the transitive closure of inheritance. A four-level chain means the role at the top holds permissions granted three levels below it, and the only way to see that in a policy file is to trace it manually for every role every time the file changes.
Three findings justify the exercise. A grant naming a permission that was never declared is almost always a typo, and the permission it was meant to grant is then held by nobody — which surfaces as a support ticket months later rather than as an error. A permission no role can reach is either dead or evidence something is broken. Two roles with identical effective sets means one of them has no reason to exist, and role lists grow this way until nobody can say what the difference is.
Because the most useful finding this produces is a grant naming a permission that does not exist, which is nearly always a misspelling. Creating permissions from grants would destroy exactly that signal.
Either it is dead and should be removed, or a grant meant to include it is misspelled — in which case the feature behind it is unreachable for everybody and nothing in your system will error.
Because nobody can explain the difference, and the difference will be invented differently by each person who has to assign one. It is not an error; it is a role model that has drifted.
No. It models the policy you wrote here. It cannot see your application's actual checks, who holds which role, or whether a permission is enforced anywhere — and a model that is correct on this page and unenforced in code grants everything.
Yes, as a Markdown table, as CSV, or as plain text with each role's direct and inherited permissions listed. The Markdown form is intended for a pull request description.
If a tool here saved you some time, you can put something towards the hosting.Buy me a coffee, on Ko-fi, opens in a new tab