Rank 2: Process
Hi there
,
I can not wrap my head around the permission differences of Roles guest and any. What exactly is the difference? How does appwrite determine of one is a guest and not anyone? Are there any docs i have missed?
Votes
0
Replies
9
Participants
Unknown
Messages
10
Rank 2: Process
Hi there
,
I can not wrap my head around the permission differences of Roles guest and any. What exactly is the difference? How does appwrite determine of one is a guest and not anyone? Are there any docs i have missed?
Rank 7: Quantum Computer
The different is if a collection for example has a permission of any then anyone can access it
But if it has the guest permission then only guests can see it and not anyone else
So the wrap it
You can read more about it here
https://appwrite.io/docs/permissions#permission-roles
Rank 2: Process
Thank you for your answer! 🙂
I still dont quite get it. What exactly differs a user from anyone? How does appwrite determine if one is a guest of my website/app/whatever and not just some rando sending requests to my server?
Rank 7: Quantum Computer
Ohh
Like that
A user is anyone that have an active session against your Appwrite endpoint
That mean the this user has to be logged in to your endpoint using any one of the methods
Otherwise this user will be treated as a guest
Any - is in both cases
Rank 7: Quantum Computer
P.s. you don't need to worry about the session logic or arranging the user ID in your functions or database fetch, as Appwrite is taking care of those parts for you
Rank 2: Process
Ah okay, so any just includes both users with active sessions and guests 👍
Rank 7: Quantum Computer
Exactly
Rank 2: Process
Perfect, thanks!
Rank 7: Quantum Computer
😄
Rank 2: Process
[SOLVED] Difference Role guest vs. any?