Start a new topic

get active user field

 So I'm getting the active user like this

 

User activeUser = mKinveyClient.user();

 The problem is that I need a field in the user called "apellido". I have tried but with no success. Can you help me please?


Hi Dan,


If you have saved a value for column "apellido", you should be able to read the property using code below:

 

mKinveyClient.user().get(new String("apellido"))

 

If you run into an issue, you can use toString() to see all the key value pairs in the user object:

 

mKinveyClient.user().toString()

 


Regards,

Wani

Kinvey Support

Sorry but your solution didn't work. I did this:
mKinveyClient.user().toString();

 And the only thing I'm getting is {_id=571ebb5f2caf81043f9c6053}. Any solution?

 

Login or Signup to post a comment