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
Restrict Oauth
Votes
0
Replies
24
Participants
Unknown
Messages
25
Or you can go with a verified user teams logic
Check this thread https://discord.com/channels/564160730845151244/1119288764792049695/1119288764792049695 about the verified logic
Rank 4: Virtual Machine
also i wonder how do i send custom emails using appwrite functions?
Rank 4: Virtual Machine
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
Rank 4: Virtual Machine
so i need to use libraries like node mailer or something with smtp
Exactly
Rank 4: Virtual Machine
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?
Rank 4: Virtual Machine
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
Rank 4: Virtual Machine
i dont want the user to access the data unless hes given the special access
Rank 4: Virtual Machine
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.
Rank 4: Virtual Machine
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.
Rank 4: Virtual Machine
what if the documents are more?
Rank 4: Virtual Machine
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
Rank 4: Virtual Machine
but anyone in the team can read the documents
This what you wanted, don't you?
Rank 4: Virtual Machine
i want it something like user == user && team == "special access"
Rank 4: Virtual Machine
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.