
From what I can see, is it possible to set the $permissions
manually when creating execution using serverside apis?

It's not possible from what I can see

It looks like you can't

What would be the value of the $permissions
if I create the execution from the server?

An empty array?

Yep

Did you already check it out before?
By the way, which panel is shown in this image? Is it something viewable on appwrite cloud? I mean the panel as you've shown it

Yes, I've checked

This PHPStorm uses the DataGrip software to view my self-hosted Appwrite instance.

Any way, thanks for helping

<a:agooglethumbsup:635256484682530825>

One last thing, what is the purpose of the async option when creating function execution? If it is set to false, does it mean that I can directly await the execution in my code and access the final response directly?

Yes, exactly.

For example

Let's say you have a function that need to get something protect from the DB Then you'll probably want the function to be executed in sync mode.

But if you have a function that can take time
Then you'll execute it in async.
Then you can use the getExecution
to see if it finished.

Yeah, I get that
Thanks once again
I also saw something in the thread you linked about the person setting execute access to users
and still not able to execute the function on the client saying that only guests
and any
are allowed, is that some bug, or did I get it wrong?

It's not a bug more like a feature 😉
What I mean is that it's a bug if you want to be able to get the execution status for guests. But, is actually a feature meant to protect the execution data.
So, in case you'll need to have that information for guests, you can tunnel it thorugh a function.

Okay then, thanks

[SOLVED] About function execution permissions

One quick question, whe using Query.select()
, are meta fields like $permission
still returned even if they've not been included in the list of fields to be selected?


Okay, thanks

Looks like thats a bug in the model example...would you be able to create an issue for that?

I'm kinda busy at the moment, but will see to it later, hopefully.
I'll file the issue on appwrite/appwrite, right?
Recommended threads
- Explore uploaded images directly from lo...
Is there any option to explore/dwonload uploaded files to from local machine? I connected through WinScp to my vps and to files from docker volume 'appwrite_app...
- Migrate Appwrite
I have appwrite setup in Coolify, where my dev and production both are running on coolify due to upgrade issues and multiple issues when deployed with coolify. ...
- After the new appwrite update, I am havi...
I am having difficulties with Creating and listing documents from appwrite database. It doesn't create the document or list the document from the database altho...
