Member Roles and Permissions
BillBuddy has a simple permission model:Group Creator
The user who created the group has special permissions:
- Add new members
- Update group details
- Delete the group
Group Members
All members (including the creator) can:
- Add expenses
- View all expenses and balances
- Initiate settlements
Currently, only the group creator can add new members. Regular members cannot invite others.
Adding Members to a Group
Navigate to Your Group
Go to the group page where you want to add a member. You must be the group creator to add members.You’ll see an “Add Member” button in the top-right section of the group page.
Click Add Member
Click the “Add Member” button to navigate to the add member form at
/add-member/:groupId.Enter Member Email
Enter the email address of the person you want to add:
The email address of the new memberMust be a valid email format. The user must already be registered in BillBuddy.
Submit
Click “Add Member” to add them to the group.The backend will:On success, you’ll see a confirmation message and be redirected back to the group page after 1.5 seconds.
- Verify you’re the group creator
- Find the user by email
- Check they’re not already a member
- Add them with a starting balance of ₹0
- Update their groups list
Viewing Group Members
Members are displayed on the group page as colorful chips showing their current balance:Understanding Member Chips
- Green Chip
- Red Chip
- Gray Chip
Positive Balance - This member is owed moneyAlice has paid more than her share and should receive ₹250 from other members.
Member Data Structure
Each member in a group has the following structure:The
balance field in the member object is currently not actively used. Instead, balances are calculated dynamically from expenses each time the group is loaded.Adding Members During Group Creation
You can add multiple members when first creating a group:- You can add unlimited members
- Members are displayed as removable chips
- Users are auto-created if they don’t exist
- At least one member is required
API Request Examples
Permission Checks
The backend enforces strict permission checks:Who can add members?
Who can add members?
createdBy) can add new members.Who can update group details?
Who can update group details?
Who can delete a group?
Who can delete a group?
Who can view group details?
Who can view group details?
Removing Members
To remove members, you would need to:- Use the group update endpoint (
PUT /api/groups/:id) to replace the entire member list - Manually update the database
- Delete and recreate the group
Member Impact on Expenses
When you add a new member to a group:- Existing Expenses
- Future Expenses
New members are NOT retroactively added to existing expensesNew members start with a ₹0 balance and only participate in expenses added after they join.
Best Practices
Add Members Early
Add all expected members before recording expenses to avoid confusion about who should be included in splits.
Verify Email Addresses
Double-check email addresses before adding. Incorrect emails will result in “User not found” errors.
Communicate Changes
Let existing members know when you add someone new, especially if it affects how future expenses should be split.
Check Permissions
Remember that only group creators can add members. If you need to add someone and you’re not the creator, ask the creator to do it.
Troubleshooting
Error: 'User not found'
Error: 'User not found'
The email address you entered doesn’t match any registered BillBuddy user.Solutions:
- Ask them to create a BillBuddy account first
- Double-check the email for typos
- Use a different email they may have registered with
Error: 'User is already a member'
Error: 'User is already a member'
The user you’re trying to add is already in the group.Check the member chips on the group page to see all current members.
Error: 'Not authorized to add members'
Error: 'Not authorized to add members'
Can't see 'Add Member' button
Can't see 'Add Member' button
Next Steps
Add Expenses
Start tracking shared expenses with your group members
View Balances
Learn how member balances are calculated and settled
API Reference
View the complete API documentation for member management