
Hi there. Is there a way to set the function permission within the function itself or in the JSON file?
The problem: I am having to set permissions for the function in the console every time I redeploy the function via the CLI " appwrite deploy function" command. Is there a way to set it before deploying it via CLI?
Thanks in advance

Hi 👋 In appwrite.json
, there is functions
key and in your function definiton there you can find execute
array of permissions. Once set there, those will be applied on every redeploy

Here is an example: https://github.com/Meldiron/almost-wishlist/blob/main/appwrite.json#L71
Possible value is for example any
, users
, guests
, ..

Thank you. I will definately check this out.

@Meldiron Thank you. I got it. I just had to set the execute attribute in the function section of my appwrite.json to this "execute": ["users"]

Great job ✨

[SOLVED] Set function permissions before deploying
Recommended threads
- How to get event payload/source from fai...
Hi everyone, I'm currently working with Appwrite's database triggers, specifically for document creation events. I've encountered a potential issue and was h...
- Creating a custom function ID in the con...
Console Version 1.8.0 Google chrome Version 139.0.7258.66 (Official Build) (64-bit)
- Function stuck and has exceeded timeout
I have a function, or more specifically, an execution that has been running for 20+ minutes. It still says "processing". I have a timeout of 6 minutes for that...
