How to access the User Profile Data in Joomla

Select your language

Steps involved to perform this operations are following:

For Joomla 3 & less:

jimport( 'joomla.user.helper' ); 
$user = JFactory::getUser();
$userId = $user->id; 
$userProfile = JUserHelper::getProfile( $userId );
echo "Main Address :" . $userProfile->profile['address1'];

For Joomla 4+:

use Joomla\CMS\User\UserHelper;
$userProfile = UserHelper::getProfile();

 Hope this helped.


Still need help! no problem, feel free to contact us Today


 Abdul Waheed : (Hire Joomla & PHP Pakistani Freelancer)