Back

How to set up user/member invite, like Clubhouse?

  • 0
  • Users
  • Flutter
  • Functions
  • Accounts
alza
8 Nov, 2023, 06:36

I have an app where I want to limit the people accessing the app initially when it’s in testing stage.

I’m looking into adding a step in the user signup process where the user signing up has to add an invite code (generated and sent from another member that’s already been invited OR generated and sent by myself) to be able to complete the signup process.

Are there any functions in existing Appwrite open source that could be used to build such functionality in my own app?

TL;DR
How to set up a user/member invite system like Clubhouse using Appwrite? - To prevent any role from being able to create teams, disable teams for client side and use it only server side. - To make the team feature work, create a team with yourself as the main admin and send out invites to others. - If the ones you invite invite others, they will not become admins of the team. The admin privileges are only given to the person who created the team. - Combining an Appwrite function with teams can help achieve the desired functionality. - Appwrite teams have team invitations, which you can use to invite users and
D5
8 Nov, 2023, 07:19

Appwrite teams have team invitations. You could create a team and invite there the users: https://appwrite.io/docs/references/cloud/client-web/teams#createMembership

alza
8 Nov, 2023, 08:11

Thanks @D5 but this doesn’t sound like a useful solution. This talks about internal use, when I just want one of my app users (not a team member or anything) be able to create an invite to share with one of their friends, to grow the user base organically through referrals.

I’m not looking to limit access or create more admins. All users will have the same access, controlled by the settings I set, but they should be able to invite new users through their own referral links/codes.

Do you still think Teams is the best way to go?

D5
8 Nov, 2023, 08:13

You mean like an access code?

D5
8 Nov, 2023, 08:13

If so, a combination of Appwrite function + teams will do the work

alza
8 Nov, 2023, 08:13

Yes! 🎯

alza
8 Nov, 2023, 08:14

Okey, any suggestions on how to combine them?

D5
8 Nov, 2023, 08:15

You basically check in the function if the invite code is correct and if so, you add the user to the team with the code I sent you in the first link

D5
8 Nov, 2023, 08:16

You could find difficult functions first time, but they're easier than what they apparent to be

alza
8 Nov, 2023, 08:20

So then to make the team feature work, I would need to create a team with myself as the main admin, and I send out invites to others?

But then if the ones that I invite invite others, will they become admins too of a team or how does that work? I guess I’ll have to read more about it in the teams doc

D5
8 Nov, 2023, 08:25

To prevent that you can disable teams for client side and use it only server side

D5
8 Nov, 2023, 08:25

I'm not sure if that's allowed for any role

Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more