bmiles-development / saas-starter-pack

Vue.js and AWS Amplify SaaS template site with pre-built login flow using AWS Amplify
MIT License
17 stars 7 forks source link

Add Multi-Tenancy For application #10

Open bmilesp opened 4 years ago

bmilesp commented 4 years ago

Based of of this howto: https://theburningmonk.com/2020/08/how-to-model-hierarchical-access-with-appsync/

Instead of Tenant and ServiceArea, use OrgOwner OrgAdmin and OrgUser

The OrgOwner and OrgAdmin share essentially the same permissions, OrgOwner will have edit capabilities on Organization name and any white labeling options. OrgUser will have mostly read only functionality.

When an orgOwner creates a user, it passes it's Id as an organization_id as a custom field as outlined in the article.

bubbleheadinc commented 2 years ago

This would be great 👍