Back

[SOLVED] AUTH Prefs question: can I make other users see other users Prefs?

  • 0
  • Users
  • Accounts
๐ŸœUdon๐Ÿœ
25 May, 2023, 13:15

Right now I'm storing stuff like email, location and phone number in my user colldction. After talking with some appwriters, I found out I could debloat my users collection and put some of that data in the Auth User Prefs. My question is if I do that can I use that to see someone else's data for a profile. I'm working on a whatsapp clone. I want to see other users phone numbers and email

TL;DR
Solution: No, you cannot use Auth User Prefs to see someone else's data for a profile. User Prefs are only accessible by the current user. If you need to access and iterate over data easily, it is recommended to stick with a custom collection.
Binyamin
25 May, 2023, 13:19

The main different will be what you've mentioned is the user prefs are accessible only by the current user.

You can override it be use the Users server side SDK, But, it still won't be easy for you to iterate over the data, as you'll to get user by user.

So if you're talking about information that is relevant only for the user - Let's say cookie consent flag then User prefs would be your freind.

If you looking on some data that need to be accessed and iterate able with easy then you'll need to stick with the custom collection.

Binyamin
25 May, 2023, 13:19

Is this make sense?

Binyamin
25 May, 2023, 13:20

Also, the user prefs is limit to a total size of 64kB per user.

๐ŸœUdon๐Ÿœ
25 May, 2023, 13:20

Ahhhh yup makes alot of sense

๐ŸœUdon๐Ÿœ
25 May, 2023, 13:20

Ohhhh

๐ŸœUdon๐Ÿœ
25 May, 2023, 13:20

It's just for settings

๐ŸœUdon๐Ÿœ
25 May, 2023, 13:20

Gotcha

Binyamin
25 May, 2023, 13:20

Exactly ๐Ÿ‘

๐ŸœUdon๐Ÿœ
25 May, 2023, 13:20

CLOSED

๐ŸœUdon๐Ÿœ
25 May, 2023, 13:21

[SOLVED] AUTH Prefs question: can I make other users see other users Prefs?

Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more