Start a new topic

UserDiscovery return null for other fields in Users collection

 Hi guys,

I have put extra field in Users collection like is_admin, sex, and etc. When user login, there is no problem retrieving this fields using like below:



When I use AsyncUserDiscovery, these extra fields just return null:

AsyncUserDiscovery users = mKinveyClient.userDiscovery();
UserLookup criteria = users.userLookup();
criteria.set("_id", "987sdfskjdnfksdrrsdfs");
users.lookup(criteria, new KinveyUserListCallback() {
    public void onSuccess(User[] result) {
        Log.v(TAG, "received " + result.length + " users");

        result[0].get("sex"); // return null

        result[0].get("is_admin"); // return null

    public void onFailure(Throwable error) {
        Log.v(TAG, "received " + error);

Appreciate any advice please. Thanks !


Mark Thien

1 Comment

Moving topic to Android discussion.

Login or Signup to post a comment