It looks like that snippet sets all user and profile fields, but not any extended fields (it would be a nice feature request).
I think you’d have to use a custom snippet. I would duplicate the PeopleGroup snippet and modify it to include the extended fields. Off the top of my head:
Change:
if ($getProfile) {
$profile = $user->getOne($profileAlias);
if ($profile) $userArray = array_merge($profile->toArray(),$userArray);
}
to
if ($getProfile) {
$profile = $user->getOne($profileAlias);
if ($profile) $userArray = array_merge($profile->toArray(),$userArray);
}
if ($getExtended && $profile) {
$extended = $profile->get('extended');
$userArray = array_merge($extended, $userArray);
}
If that works, you can include the code in the feature request.
Note that you’d need both &getProfile=`1` and &getExtended=`1` in the snippet tag.
Then you could put any user placeholders you want from the profile or extended fields in the Tpl chunk.