Home / Companies / Hasura / Blog / Post Details
Content Deep Dive

Implementing Authorization for Organization-based, Team-based, or Tenant-based Apps in Hasura

Blog post from Hasura

Post Details
Company
Date Published
Author
Gavin Ray
Word Count
372
Language
English
Hacker News Points
-
Summary

This blog post discusses implementing authorization for organization-based, team-based, or tenant-based apps in Hasura. It outlines a common organization-based permission system and provides an example of how to model such permissions using only Hasura's standard permissions system and authorization rules. The solution works for any "group"-like structure, including teams, organizations, tenants in multi-tenant apps, chat group-messages, etc. The article demonstrates how to create relationships between tables and set up appropriate permissions to ensure that users can only see/interact with other entities within their own groups.