
https://appwrite.io/docs/permissions
You can read about permissions here

I think examples will show you how to use permissions for your own case

Btw, it's best to use 3 back ticks with multi-line code. See https://www.markdownguide.org/extended-syntax/#syntax-highlighting

What are the permissions on the document and collection?

All I did was to add this under collection settings

What's the code for appwriteClient? Is the user logged in?

also you're passing an array for data? I think it needs to be a dictionary. I don't know the syntax for swift though

yes after logging in I first run a query to get the document, then I need to update the document, so read permission is working it just the update not working

Ohk

Still same issue

Are you self hosting? If so, what version are you on and do you have relationships?

What's your code for appwriteClient? And how many instances of that do you have?

yes self hosting, plus it does have a relationship

Does the user have update permissions on all the related documents?

It didn't have in another collection that had a relationship with, just trying it now

Thank you steven

It works now

I had question what if I don't want to give collection permission, can we use the paramters from sdk to give permission and is that temporary?

Like I don't think I should give users read and update permission from client side? Can you suggest a better way?

I haven't tried the permission parameter using sdk functions so I don't know how that works internally

Not sure what you mean

A user can only grant a permission they already have so I'm not sure what the concern is

API keys have full access

I meant can all users update a document within a collection?

Only if they're granted permissions
Recommended threads
- Offline replication with RXDB
Hey there! Trying out apprwrite with rxdb for an offline focussed application. I cannot seem to find on how to set the permissions on a per document level?
- How to Fetch Item and Include the User/A...
A typical workflow with ORMs is to, for example, fetch an item from the DB and include the user who created it. How would I do that with AppWrite? Is that easil...
- Unable to add permission when creating a...
I am creating a collection from a cloud function using the Appwrite Dart server SDK, and I want to add permissions so it can be accessed by users. I added code ...
