search_users_by_attributes now doesn't fail when only one directory has an attribute.