Back

How to prevent users from creating new teams and prevent abusing it?

  • 0
  • Teams
  • Cloud
memoonlite
12 Feb, 2024, 11:59

Hi everyone!

On the client side it's possible for users to easily create a new team by using the following code:

teams.create(teamId: '9239823982323', name: 'name');

In theory it'd be possible for users to spam the Appwrite environment with new teams. Imagine an infinite loop like this:

TypeScript
   teams.create(teamId: 'unique()', name: 'name');
}```

Does anyone know if there's a way to prevent users from creating new teams?
TL;DR
Hey developers! It seems like there's a concern about users being able to create new teams and potentially abuse the feature. The code example provided shows how users can create teams easily. To prevent this, you can implement a solution by adding a check on the server-side before allowing team creation. This way, you can control who has the permission to create teams.
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