Invite and manage members with Roles
This guide will help you manage organizations by inviting members and assigning roles in the Next.js Supabase SaaS template for efficient user collaboration.
Overview
In the Next.js Supabase SaaS Template, organizations play a crucial role in managing user access and collaboration. This guide provides a comprehensive overview of how to manage organizations, invite members, and assign roles within the template.
Key Features of Organization Management
- Built-in Support for Organizations: The template supports groups of users, referred to as organizations, allowing for organized collaboration and management.
- Role-Based Access Control (RBAC): Users can be assigned different roles, which determine their access to features within the template.
Inviting New Members
Users can invite new members to join an organization. The invitation process is straightforward, with predefined roles, and the option to customize additional roles as needed.
Steps to Invite Members
- Access the Organization Management Interface: Navigate to the Members tab within the template.
- Click on 'Invite Member': Initiates the invitation process.
- Enter User Details:
- Email Address: Enter a valid email address for the invitation.
- Assign a Role: Select a predefined role for the new member:
- Member: Standard access to organization features.
- Admin: Elevated access to manage organization settings and users.
- Send Invitation: Click the 'Invite Member' button to complete the process. An invitation link will be sent to the provided email address, allowing the invited user to sign up and join the organization using that link.
Invited User Details
Once an invitation is sent, the inviting user can view the following details about the invited member:
- User Name: The name of the invited member.
- Email Address: The email associated with the invited member.
- Role: The assigned role (Member or Admin).
- Status: Indicates whether the invitation is joined, or pending.
- Created On: The date the invitation was sent.
- Action: Only the Organization Owner, Organization Admin, and Super Admin can see the delete action in the members' table.
Deleting Members
Organization Owners, Admins, and Super Admins have the ability to delete members within the organization. This can be done directly from the members' table, where they will see an option to remove members as necessary.
Role-Based Feature Access
The template provides feature access based on user roles. This means that different roles may have different permissions for using features within the organization. Understanding these permissions is vital for effective management.
Super Admin
- Full visibility across the application.
- Cannot update the profile email of other users.
- Cannot enable 2FA for other users.
- Cannot update any user’s password.
- Cannot upgrade/downgrade/cancel other organization’s billing plans.
Organization Owner
- Full access to their own organization, including billing.
Organization Admin
- Full access to their own organization, except for billing.
- Cannot delete the organization.
Organization Member:
- Full access to their own organization, except for billing.
- Cannot invite or remove users.
- Cannot update or delete the organization name and logo.
- Cannot delete the organization.