Add belong_to_primary_group method to user resource.