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
- Bulk Operations in Function API KEY
When my appwrite function executes (hosted on appwrite console), the bulk operations don't execute (without error) unless I add a dev key as an API Key in the e...
- 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...
