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
- my database attribute stuck in processin...
when i created attributes in collection 3 of those attributes become "processing", and they are not updating, the worst thing is that i cant even delete them s...
- Forever Processing Issue
I encountered an issue when creating attributes in the collections . if you create an attribute of type string for example and choose a size of 200 or 250 or a...
- Realtime Disconnects and Error: INVALID_...
Hi! I just want to ask here if there's any workaround with the disconnect issues we're encountering when subscribing to realtime events in react native using ex...
