Then go woth either the first option to limit the user number. This will let you create the user using a Server side SDK. But no user will be able to create account
Or you can go with a verified user teams logic
Check this thread https://discord.com/channels/564160730845151244/1119288764792049695/1119288764792049695 about the verified logic
also i wonder how do i send custom emails using appwrite functions?
thanks i will check this
You'll need to use an external SMTP service. There is no way of using Appwrite mailer for custom emails at the time
so i need to use libraries like node mailer or something with smtp
Exactly
i have another question... currently i have a team called special members
i add. them to the team after being verified and they can start creating the documents
Okay?
when i remove the user from the special access. the user is still able to read this document
How did you removed the user special access
i dont want the user to access the data unless hes given the special access
removing from the team
Okay. And what is the document and collection permission?
As if the user is creating a document using the Client side SDK then the user will get reading permission for the user id. And not only because the user is in a specific team.
Document Security is turned on
So in your case after removing a user from a team you need to make sure to remove permissions from every document created by the user.
what if the documents are more?
cant we somehow restrict them
If you want to mitigate this You can move the creation process to a function and then give only the team members access.
If you do this then any time you'll remove a user from a team the reading access will also get block
but anyone in the team can read the documents
This what you wanted, don't you?
i want it something like user == user && team == "special access"
if one of them is false then the access should be restriced
Ohh, then you'll need to go with:
- Removing user from the permissions. Or
- Move the whole document fetching to a function. Or
- Create a role - per user - move the creation to a function. Then when the user is removed remove the user from the team and remove is role.
Recommended threads
- Having issues with login via CLI
``` ~/appwrite î‚° appwrite login --endpoint https://localhost/v1 --verbose ? Enter your email myvalidemai...
- Send Email Verification With REST
I am using REST to create a user on the server side after receiving form data from the client. After the account is successfully created i wanted to send the v...
- Use different email hosts for different ...
Hello, I have 2 projects and i want to be able to set up email templates in the projects. Both projects will have different email host configurations. I see ...