Hello,
My question is about setting the permission for updating the documents of the collections.
My vite reactjs web app uses Google sign for adding the users to my users collection. Those users can make notes which get saved in another collection called notes.
Since I use Google to add users to my users collection, is "Any" the only group that I can give permission to modify my notes collection? I have tried other groups, but all of them give the error about the lack of authorization.
This is the flow of the application:
- The user opens the vite reactjs web app.
- They do not see anything expect the Sign in with Google button.
- They sign using their Gooogle account and their email and username gets saved in the
userscollection. - They are taken to a page where they can create notes.
- After writing the note and clicking on "post", their note is saved in the
notescollection.
Currently, the only way that I have been able to make the users post notes that were successfully saved in the notes collection has been by setting the permission for notes collection to "Any." When I select any other group, I get the error about the lack of authorization for performing that action.
I do not have any accounts in the Users or Team category of the Auth section, as the account information comes from the users' Google account and the necessary information gets saved in the users collection of my database.
Any clarifying comments about the cause of this is greatly appreciated.
Recommended threads
- Realtime api and labels as permission
in my tables i set labels as permission and real-time capabilities stopped working. Before when i was having "any" role everything was working. Note: user have...
- API key not having access to database
My api key with read and write access to row and tables and DB I not working. In my test the results returned an empty database. This is the second time I am...
- "Restore project" button fails: "Invalid...
In the dashboard, it clicking "Restore project" fails. The request sent to `PATCH https://cloud.appwrite.io/v1/projects/:project_id` with payload `{status: "act...