what is the best way to keep some information user would like to share (for example photo) - may I use Users for this goal or I should create a new collection and link by user id?
You can store any number of custom attributes about your user on the User entity (including KinveyRef). However we don't support KinveyFile reference on user entities at the moment but it's on our backlog. Instead, for photos you're storing with our File API, you should use KinveyFile reference on a data entity in a collection and KinveyRef back to the User entity.
Our native [iOS](http://devcenter.kinvey.com/ios/samples/citywatch "iOS") and [Android](http://devcenter.kinvey.com/android/samples/citywatch "Android") CityWatch sample demonstrate this capability.
Let me know if that helps.
K
Kath Kleym
said
over 6 years ago
Hi Morgan!
Thanks for the response. But actually my question was not about files, it was about additional fields. If I would create them, I may consider them as any other fields ? Because to access user I should use different end point, and not sure 100% that I can add anything else what was created automatically. Thanks
M
Morgan
said
over 6 years ago
Yes, custom attributes on the User entity are just like any other entity field. HTH
K
Kath Kleym
said
over 6 years ago
Thanks, Morgan!
M
MP Rogers
said
over 4 years ago
Can a user's custom attributes be edited programmatically, i.e., can we use KCSUser.activeUser()'s setValue(forAttribute) method? My students are claiming that they can set attributes but then not edit them in subsequent calls.
Michael
1 person likes this
D
Dan ponce
said
over 4 years ago
MP Rogers, did you manage to fetch the user custom field?
Kath Kleym
what is the best way to keep some information user would like to share (for example photo) - may I use Users for this goal or I should create a new collection and link by user id?
- Thanks