Skip to content
Weave templates

RBAC model

Users → Roles → Permissions → Resources.

Template previewWeave
Rendering…

Make it your own.

{
  "nodes": [
    { "id":"u1","type":"rect","label":"User: Alice","x":40,"y":80,"fill":"#dbeafe","stroke":"#2563eb" },
    { "id":"u2","type":"rect","label":"User: Bob","x":40,"y":180,"fill":"#dbeafe","stroke":"#2563eb" },
    { "id":"u3","type":"rect","label":"User: Carol","x":40,"y":280,"fill":"#dbeafe","stroke":"#2563eb" },
    { "id":"ra","type":"rect","label":"Role: Admin","x":260,"y":80,"fill":"#ede9fe","stroke":"#6d28d9" },
    { "id":"re","type":"rect","label":"Role: Editor","x":260,"y":200,"fill":"#ede9fe","stroke":"#6d28d9" },
    { "id":"rv","type":"rect","label":"Role: Viewer","x":260,"y":320,"fill":"#ede9fe","stroke":"#6d28d9" },
    { "id":"p1","type":"rect","label":"Perm: manage","x":480,"y":40,"fill":"#fed7aa","stroke":"#c2410c" },
    { "id":"p2","type":"rect","label":"Perm: edit","x":480,"y":160,"fill":"#fed7aa","stroke":"#c2410c" },
    { "id":"p3","type":"rect","label":"Perm: read","x":480,"y":300,"fill":"#fed7aa","stroke":"#c2410c" },
    { "id":"rs","type":"rect","label":"Resource","x":720,"y":180,"fill":"#dcfce7","stroke":"#15803d" }
  ],
  "edges": [
    { "id":"e1","source":"u1","target":"ra" },
    { "id":"e2","source":"u2","target":"re" },
    { "id":"e3","source":"u3","target":"rv" },
    { "id":"e4","source":"ra","target":"p1" },
    { "id":"e5","source":"ra","target":"p2" },
    { "id":"e6","source":"ra","target":"p3" },
    { "id":"e7","source":"re","target":"p2" },
    { "id":"e8","source":"re","target":"p3" },
    { "id":"e9","source":"rv","target":"p3" },
    { "id":"e10","source":"p1","target":"rs" },
    { "id":"e11","source":"p2","target":"rs" },
    { "id":"e12","source":"p3","target":"rs" }
  ]
}