Replies: 3 comments 4 replies
-
|
Ideas for extending the usefulness: Currently there is a Perhaps it would be possible to extend the user object somehow, so that when you did |
Beta Was this translation helpful? Give feedback.
-
|
I think adding permissions to user preferences will add a lot of complexity and open questions for that kind of an implementation. The nature of user preferences is always to be private for the user and insecure, meaning the user can change his own preferences (very good for metadata like theme, age, gender, etc...). Today, nobody can read the permissions beside the user or the project admin because if that was possible it was really easy for anyone to fetch the entire users list of a project. For "secure" permissions the only admins/owners can write or read we had the idea of users labels that could only be set from the server API or using the console. I think this is better to achieve the different use-cases that could use this feature. The other major problem I think we have with user preferences is the lack of structure. This makes the future implementation of GraphQL or Response Models in the Appwrite SDKs very difficult. I think we should probably allow to preset which keys are allowed, and accept only a specific type of file. Going with full DB collection permissions might be an option, but a bit more complex. The main advantage over just using the DB is the we can probably handle the results cache per user more effectively and really speed up this endpoint. |
Beta Was this translation helpful? Give feedback.
-
|
Has this been addressed? Clearly, non-user writeable account preferences, say account securityDetails, - or privileges per account preference as suggested by the thread author - would eliminate a lot of complexity like re-routing to a server side function to access the database. @Meldiron |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Appwrite's account preferences let you store information on the user's objects to easily share them across multiple devices and sessions. I have user prefs improvement in my mind for a long time, so let's start a discussion! 🥳 My idea is to add multiple preferences for multiple permission levels:
theme=darkdiscordUserId=4df65sf64s5d4ds9f15sf8d4sd468fgender=MaleisVip=trueLet's Chat! How can we improve Appwrite user preferences? What do you think about this initial idea? Can you see any problems or do you have an idea how to improve it even more?
Beta Was this translation helpful? Give feedback.
All reactions