To get the details of the contact of a customer, we can use these possible method
Method
getUserProfile() → {UserProfileInfo}
The syntax is given below,
var userprofilecomponent = container.getComponent("UserProfile");
userprofilecomponent.getUserProfile().then(function(profile) {
});