
I have this function and I will use the set jwt token. Now the client side will pass a jwt token for that cloud function I want answers for all this questions:
- In server side if I account.get. I can get the user info even I am in the server side right?
- I am going to create documents and set a permissions to the specific user, not himself/herself. Because in client side when I try to set a permission to referred to another user it gives me an error, so In server side can I able to do this ?

I can't parse the first part of your question, but the 2. - yes if you have a privileged API key.
But then it also works from the client

I will use jwt token insteaf using the api key.

I am getting error when I am creating permission specific user excluding self id, for example User B will have permission to write this document. IN that case it will throw an error

But nvm


Using a JWT is the same as making the API call client side as the user.
If you want to set permission to someone else, you must use an API key

Btw, the client doesn't need to pass a JWT. If they're logged in and they execute function, 2 headers are automatically populated with the user's id and JWT. See the docs.
Yes, calling account.get() with a JWT will get that user.
Why do you need to call account.get()?

Just nothing heheh just want to clarify. Btw, does the team will implement that allow us to to set permission to someone else in the future or not?

Probably not
Recommended threads
- Server Error when Pushing a Function
Get this ambiguous error when trying to push my function, it's TypeScript using NodeJS 18 ``` ? Which functions would you like to push? get-grades (get-grades)...
- 2 Columns still processing since yesterd...
Hey o/ Yesterday (around <t:1758045600:f>), I created a database and added several columns to it. After about 15 minutes, most of the "processing" tags disappe...
- 503 Timeout when Updating or Upserting D...
Hey I’m running into an issue when trying to update or upsert a row in Appwrite. The request hangs for a while and then throws this error: ``` AppwriteException...
