isPrimaryUser and getAliases in users module