You can load a specific user object with just the user name or user ID when using the getUser() method.
$user = JFactory::getUser('username');
$user = JFactory::getUser(55);
You can load a specific user object with just the user name or user ID when using the getUser() method.
$user = JFactory::getUser('username');
$user = JFactory::getUser(55);
Thanks a lot for this. it saved hours of work for me