In my app I have a CreateUser flow which makes several documents and at the end uses the functions.createExecution() to call a server-side function to create a document in a management table (so the user shouldn't have any permissions to read/write/update/delete; completely out of scope). Every step in the creation flow works up until the function call, the function log gives a 500 error with this as the reason (Database error: The current user is not authorized to perform the requested action.). Does this mean it is a function scope error, or what? The user shouldn't have/need permission to access creation for that table. The function's scope has access to create for it, so I'm so confused. Any help would be appreciated!
okey so you need to make a api key and add it to you funtion and trigger it on users.*.create
by adding it i mean added as a env
hope this helps
Recommended threads
- Android SDK: Kotlin null Value Not Updat...
Hi team, I think you should check the Android SDK implementation once, as it seems to have an issue handling Kotlin **null** values. For example: When I send:...
- IMPORTANT! SOC-2 Request Failing
Issue requesting SOC-2. If tried other/private browser as well as filling in optional fields.
- Appwrite-injected variables are not avai...
I am using rust-1.83 as a runtime and try to access APPWRITE_FUNCTION_API_ENDPOINT or APPWRITE_FUNCTION_API_KEY during runtime. Both are not set during my execu...