def METHOD_NAME(project, group, user, **kwargs):
    assignee = GroupAssignee.objects.get(group_id=group.id).assigned_actor()
    actor: RpcUser | Team = assignee.resolve()
    data = {
        "assignee": {"type": assignee.type.__name__.lower(), "name": actor.name, "id": actor.id}
    }
    org = project.organization
    if hasattr(actor, "email") and not org.flags.enhanced_privacy:
        data["assignee"]["email"] = actor.email
    send_workflow_webhooks(org, group, user, "issue.assigned", data=data)