xSenny_Original post
Android Developer
I already gave access to all of my users to access the database collection. Is there another problem?
JavaScript
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) })```Summary
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.