Back
[AppwriteException: anshdjab@dhwjs.com (role: users) missing scope (collections.read)]
- 1
- Databases
I already gave access to all of my users to access the database collection. Is there another problem?
TypeScript
await databases.listDocuments(
appwriteConfig.userCollectionId, [], 10, 0,
[
Query.equal("age", form.age),
Query.equal("characteristics"), JSON.stringify(form.characteristics),
Query.equal("hobbies"), JSON.stringify(form.hobbies),
Query.equal("region", form.sector),
Query.equal("gender", gender)
]
).then((res) => {
users = res.documents;
}).catch((e) => {
console.log('eroare', e)
})```
TL;DR
Issue: AppwriteException is occurring due to a missing scope (collections.read) for a specific role (users) with the given email address.
Developers are working with React Native and Expo. It's not Android-specific and there doesn't seem to be a framework causing the problem.
The code snippet is querying a database collection but is missing proper scope permissions. Check and ensure that the users have the necessary scope to read collections.Is this Android, JS? Are you using some framework?
yes with react native expo
Recommended threads
- AppwriteException: Missing required para...
I'm using node-appwrite sdk to retrive the documents. Example my code on pic, was define collectionId but error is still. Why?
- Filtering relationship attributes
For example table named inspection has relationship with car I want to query inspection and filter with car.plate_number? How can I achieve that without doing i...
- support counts
I want just want number of rows i have matching few conditions, if databse.count was there then will had saved few resources, instead using databse.listrows