https://authzed.com logo
#spicedb
Title
# spicedb
j

Joey

11/22/2021, 3:06 AM
Copy code
definition tenant {
  relation admin: user
}

definition resourcetype {
   relation viewer: user
}

definition resource {
  relation parent_tenant: tenant
  relation type: resourcetype
  relation viewer: user
  permission view = viewer + type->viewer + parent_tenant->admin
}