As of April 12th, you must go to Progress SupportLink to create new support cases or to access existing cases. Please, bookmark the SupportLink URL and use the new portal to contact the support team.
I need to create a user and add additional fields to it.
The documentation tells us to create the user and then update it.
Is there a way to create the user with additional fields using only one call ?
Thanks.
Best Answer
G
Gary
said
about 8 years ago
I believe you can do that by creating a User object and then putting the required extra info and then calling create() on it like so:
final AsyncUser user = getKinveyClient().user();
user.put("extra_info_1", "stuff");
user.create(username.trim().toLowerCase(), password.trim(), kinveyCallback);
Where mongo is schemaless, users are just another "document" in a sense. You can add and remove fields as you see fit.
Thanks,
f
fabreax
said
about 8 years ago
Yes, but the Kinvey "create" method contains only 2 parameters : username and password.
It could be interesting to add this method : create(login, password, morefieldsHashMap)
G
Gary
said
about 8 years ago
Answer
I believe you can do that by creating a User object and then putting the required extra info and then calling create() on it like so:
final AsyncUser user = getKinveyClient().user();
user.put("extra_info_1", "stuff");
user.create(username.trim().toLowerCase(), password.trim(), kinveyCallback);
fabreax
Hi,
I need to create a user and add additional fields to it.
The documentation tells us to create the user and then update it.
Is there a way to create the user with additional fields using only one call ?
Thanks.
I believe you can do that by creating a User object and then putting the required extra info and then calling create() on it like so:
- Oldest First
- Popular
- Newest First
Sorted by Oldest FirstDamien Bell
Fabreax,
Where mongo is schemaless, users are just another "document" in a sense. You can add and remove fields as you see fit.
Thanks,
fabreax
Yes, but the Kinvey "create" method contains only 2 parameters : username and password.
It could be interesting to add this method : create(login, password, morefieldsHashMap)
Gary
I believe you can do that by creating a User object and then putting the required extra info and then calling create() on it like so:
1 person likes this
fabreax
Thanks ! It works ;)
Damien Bell
I love when this happens. Thanks Gary :)
-
Can I add KinveyReferences and other custom Arrays to the User entity?
-
How can I use custom enums within my Entity?
-
Linking an image does not save with LinkedData
-
How can I get all records saved by the current user?
-
Why don't all users see the same data when querying?
-
Retrieving related file from datastore collection - continued
-
Problem implementing sign up / login
-
Can Android API be used for Java?
-
I'm not receiving push notifications
-
It is impossible to receive object according to the link
See all 259 topics