Skip to content
Back

Function permissions

  • 0
  • 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
Developers are encountering a permissions issue when a function is called to create a document in a management table from an app's CreateUser flow. Despite the function having appropriate access, a 500 error indicates the current user is not authorized. This error might arise from incorrect function permissions or conflicting access settings. Double-check the function's scope and verify the user's permissions for accurate configuration.
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