Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multi-tenancy / Add support for multiple tenants in SaaS Boilerplate web app #382

Closed
4 tasks done
pziemkowski opened this issue Aug 21, 2023 · 4 comments · Fixed by #561
Closed
4 tasks done

Multi-tenancy / Add support for multiple tenants in SaaS Boilerplate web app #382

pziemkowski opened this issue Aug 21, 2023 · 4 comments · Fixed by #561
Assignees
Labels
enhancement New feature or request hacktoberfest
Milestone

Comments

@pziemkowski
Copy link
Member

pziemkowski commented Aug 21, 2023

Description

Currently a user cannot be a member of multiple organisations, nor is there really a concept of grouping them and allowing to work on a common content.

Describe the solution you'd like

  1. Organisation management:
  • Creating a new organisation: Allow users to sign up and create a new organisation instance with a unique organisation ID.
  • Editing organisation information: Enable users to modify their organisation information such as name, description, or custom branding.
  1. User management within an organisation:
  • Inviting users: Allow the organisation admin to invite other users via email to join the organisation. Users should be able to accept or decline invitations
  • User roles and permissions: Provide different levels of access and control within a organisation based on user roles.
  • Removing users: Enable the organisation admin to remove users from the organisation.
  1. Billing management:
  • Assigning billing information to an organisation: Handle billing information per organisation.
  • Subscription management: Allow the organisation admin to subscribe, upgrade, or downgrade their plan.
  • Invoice generation and payment history: Generate invoices for each billing cycle and allow users to view their past payments.
  1. organisation-specific configurations:
  • Customizable settings: Allow organisation to set their settings like: preferred language, timezone, or other locale-specific settings.
  • Feature toggling: Allow the organisation admin to enable or disable certain features based on their plan or needs.
  1. Data isolation and security:
  • Data separation: Ensure that each organisation's data is isolated from others
  • Security measures: Implement necessary security controls to protect the organisation's data, such as access control policies.

Additional context

Refer to discussion #334 for a complete list of requirements.

Validations

Subtasks

@pziemkowski pziemkowski added the enhancement New feature or request label Aug 21, 2023
@mkleszcz mkleszcz added this to the 2.1.0 milestone Aug 21, 2023
@kailashchoudhary11
Copy link

kailashchoudhary11 commented Sep 7, 2023

Hey, is anyone working on this issue? If no one is working, I would like to work on this.

@pziemkowski
Copy link
Member Author

I've assigned the ticket to you as you asked so there are no conflicts. Let us know on Discord on how it's going.
Sorry it took so long!

@kailashchoudhary11
Copy link

I've assigned the ticket to you as you asked so there are no conflicts. Let us know on Discord on how it's going. Sorry it took so long!

Hey, Thank you for assigning the issue. I'm facing some problems in creating a new user. I tried it from both the admin panel and the front end. But I'm getting an error saying Either subscription or price must be defined. How can I resolve this? I tried to create a new entry in the Price model but I'm unsure what to put in those fields.

@pziemkowski
Copy link
Member Author

pziemkowski commented Sep 25, 2023

#387 fixed in #404

@pziemkowski pziemkowski changed the title Add support for multiple Organisations in SaaS Boilerplate web app Multi-tenancy / Add support for multiple Organisations in SaaS Boilerplate web app Feb 7, 2024
@mkleszcz mkleszcz changed the title Multi-tenancy / Add support for multiple Organisations in SaaS Boilerplate web app Multi-tenancy / Add support for multiple tenants in SaaS Boilerplate web app Feb 7, 2024
mkleszcz added a commit that referenced this issue May 22, 2024
BREAKING CHANGE: Important migration instructions

Before running the multi-tenancy migrations on your existing codebase or database, it is crucial to follow these steps to avoid any issues:
1. Remove or comment `DJSTRIPE_SUBSCRIBER_MODEL` setting
2. Run the migrations
3. Revert the change: After the migrations have successfully completed, revert the change by uncommenting or re-adding the `DJSTRIPE_SUBSCRIBER_MODEL` setting.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request hacktoberfest
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants