okay. I think I just figured this out. I just make sure I assign the correct data to the fields in the jsn_users table and the jsn_users plugin will do the rest and the jsn_users plugin will be called when the user plugins are loaded. Is this correct?
Yes, but I recommend to use our API to fill jsn_users table, try to read docs here:
https://www.easy-profile.com/docs/38-jsnuser-object.html
So
- Create Joomla user with normal way
- Load JSN User with API
require_once(JPATH_SITE.'/components/com_jsn/helpers/helper.php');
$user=JsnHelper::getUser($joomlaUser->id);
- Fill Jsn User object with your value
$user->alias_of_field="your value";
$user->firstname="your value";
$user->lastname="your value";
- Save Jsn User
$user->save();