def METHOD_NAME(user_list):
    users_list = []
    for u in user_list:
        try:
            profile = u.profile
        except UserProfile.DoesNotExist:
            profile = UserProfile.objects.create(user=u)
        users_list.append(
            {
                "user": u.username,
                "role": get_role_in_org(u, obj),
                "first_name": u.first_name,
                "last_name": u.last_name,
                "gravatar": profile.gravatar,
            }
        )
    return users_list