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
- 2 Columns still processing since yesterd...
Hey o/ Yesterday (around <t:1758045600:f>), I created a database and added several columns to it. After about 15 minutes, most of the "processing" tags disappe...
- 503 Timeout when Updating or Upserting D...
Hey I’m running into an issue when trying to update or upsert a row in Appwrite. The request hangs for a while and then throws this error: ``` AppwriteException...
- Row with the requested ID already exists...
I’m hitting a blocking issue creating rows in Appwrite (both from the console and my React Native app). After successfully inserting the first row, every subseq...
