I have a document with file level security that was created with Permissions for only that 1 user to create, update and delete, (Permission.read(user...) e.tc...) Now within my app i want to be able to update the permissions to allow for a second user to have read access.
Is there a specific method for this or must i fetch the current permissions then append the new Permission to it?
The user editing the document must have write permissions. The best way is to fetch the current permissions and append the new one(s)
Great, next question, in the settings tab of the database collections, if I scroll down to permissions and enable Users: Read✅ Does this mean ANY Authenticated User can read any file in that collection?
Because when I add a file to the collection I'm setting Permission.read, update and delete on that one User alone. And I'd like for them to be the only one to have those permissions. Would I have to disable Users: Read❎?
Yes, you're right, the collection permissions apply to all documents, you should remove the read permission in the collection level and only apply it in the document itself
[SOLVED] Document Security, multiple User permissions
Recommended threads
- Free plan Usage
I using a free plan with one organization. I have three projects but on the free plan I should be able to have 2 projects running But in my case only 1 out of ...
- SPA Not working
So I'm using vite/react, which is spa, and it used to work before, but now whenever I go to any route except the root it shows appwrites 404 page, instead of us...
- Database AI Column Suggestion Use Case
I tried using the AI column suggestion feature. For me, I prefer writing my column design separately in a notepad. Then my intention is to paste it into the AI ...