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
users
collection. - 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
notes
collection.
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
- Issue with relations on database
I'm creating a food ordering website for businesses. I'm having issues with the relations on my database I attached the attributes for the collections I'm hav...
- The current user is not authorized to pe...
I want to create a document associated with user after log in with OAuth. The user were logged in, but Appwrite said user is unauthorized. User is logged in wi...
- self-hosted auth: /v1/account 404 on saf...
Project created in React/Next.js, Appwrite version 1.6.0. Authentication works in all browsers except Safari (ios), where an attempt to connect to {endpoint}/v1...