Skip to content

Retrieving User Properties


This operation allows retrieving user properties from the BackendlessUser object stored locally in the client application.


var user = new Backendless.User();
var phoneNumberValue = user[ "YourProperty" ];

Return Value

An object containing properties and corresponding values.

  "propName1" : value,  
  "propName2": value,   


The example below logs in as "" and retrieves the phoneNumber user property.

Backendless.UserService.login( "", "wonderland" )
   .then( function( loggedInUser ) {
      console.log( "User has been logged in: " + );

     var phoneNumber = loggedInUser[ "phoneNumber" ];
     console.log( "User phone number: + phoneNumber );