Back
[AppwriteException: anshdjab@dhwjs.com (role: users) missing scope (collections.read)]
- 1
- Databases
xSenny_
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. D5
Is this Android, JS? Are you using some framework?
xSenny_
yes with react native expo
Recommended threads
- How to Avoid Double Requests in function...
I'm currently using Appwrite's `functions.createExecution` in my project. I want to avoid double requests when multiple actions (like searching or pagination) a...
- Edit ID of an existing collection
Hi there. Is it possible to edit an ID of an existing collection? Right now it looks impossible from AppWrite cloud at least.
- Seed db
hello there... is this correct way to seed appwrite