Skip to content
Back

Function permissions

  • 0
  • 2
  • Databases
  • Functions
  • React Native
IMONSP33D
14 Dec, 2025, 05:50

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!

TL;DR
Create an API key and add it to your function to trigger on users.*.create by setting it as an environment variable.
14 Dec, 2025, 06:13

okey so you need to make a api key and add it to you funtion and trigger it on users.*.create

14 Dec, 2025, 06:13

by adding it i mean added as a env

14 Dec, 2025, 06:16

hope this helps

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