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
- Error: User (role: guests) missing scope...
I want to send a verification code to the user and the given phone number and check it and create a session right after the user entered the secret. For me that...
- Sign In With Apple OAuth Help
Hi All! I've got a flutter & appwrite app which Im trying to use sign in with apple for. I already have sign in with google working and the function is the sam...
- Type Mismatch in AppwriteException
There is a discrepancy in the TypeScript type definitions for AppwriteException. The response property is defined as a string in the type definitions, but in pr...