I have a perculiar problem and thinking of ideas, if you have any please let me know.
Using the web sdk on a client application (no servers) I have some collections that I want only users/verified role to be able to create. However, when a new user creates an account, I want to create a set of default collections.
Unfortunately i cannot do this if with the collection level role active. Since the created user (email provider) is not verified yet.
Any ideas on how I can create this default without removing this role? I thought about an admin function but I don't know if that makes sense exposed to a client app
A cloud function is your best bet since it can be triggered by events. The client doesn't need to directly call the function. https://appwrite.io/docs/products/functions/execution#events
Recommended threads
- Transaction Error
AppwriteException: Transaction with the requested ID could not be found. at Generator.next (<anonymous>) { code: 404, type: 'transaction_not_found', r...
- Can not get the logged in user data in N...
I'm trying to get the user data after i log in with otp but it get this error : AppwriteException: User (role: guests) missing scopes (["account"]) at Gen...
- Auto Updating Backend & Auth via Appwrit...
<@870607367597850624> Hey everyone 👋 I wanted to ask to ask for a friend, he’s asking if Appwrite be used in a similar way to Supabase when integrated with AI ...