[CLOSED] Appwrite PHP SDK Document Permissions: Setting Read and Write Access
- 1
- Databases
- Functions
- Cloud

Would you please try removing your custom status codes?

I mean that after I send the payload in json format and execute it via appwrite console, if failes


Still failes

can you show the data you are sending to the function in the payload?

It works now, but is there any problem if after creating the document with the owner attribute different from my userId, I can delete it in Appwrite manually?

sure! The console user has full access to all the data

So should I change the function? Wont be any problem if I do it after creating the document with the owners attribute being different from my user id, right?

Are you working with the original poster on the same code?

No but its almost identical

I’ve been using the same method

please create a new post so that discussions don't get mixed up between two people

Im sorry its me sidney. Its my phone account. I switched devices and i forgot to mention it

ahhh ok

sooooo, honestly, i didn't quite understand this question

What is the right method to add permissions so only the owner(attribute of the document) can delete and update the document. I am using php sdk to create a new document.

you already have it so what's the problem?

Yes but after I execute the function in appwrite console, and sending the json payload with the owner attribute differente from my user id, I can still delete it. I wante to know if this is a problem or not?

you can delete it using the Appwrite Console?

Not in console, just in Appwrite at documents

what do you mean? maybe share a screenshot?


This is the Appwrite Console and you're logged in as a Console user who has full rights to everything in the project. This is not a problem

Okay, I just wanted to be sure. Thnks

[CLOSED] Appwrite PHP SDK Document Permissions: Setting Read and Write Access
Recommended threads
- Can't create empty documents?
When I try to create a document without any data, I get this error: ```json {"message":"The document data is missing. Try again with document data populated","c...
- deleteDocument shows The current user is...
my application is an ecomm app that list the products and i just want to add the delete functionality to delete the product the user has permission in appwrite...
- Not sending to majority of Topic Targets...
I have a site using Appwrite Cloud with many people joined with email, Google/Facebook/or Apple Auth. I’ve added them (156 people) to a Messaging Topic and have...
