Re-create the principals hash from users and groups.