def METHOD_NAME(
    make_organization_and_user_with_plugin_token,
    make_user_auth_headers,
    role,
    expected_status,
):
    _, user, token = make_organization_and_user_with_plugin_token(role)
    url = reverse("api-internal:user-export-token", kwargs={"pk": user.public_primary_key})
    client = APIClient()
    response = client.post(url, format="json", **make_user_auth_headers(user, token))
    assert expected_status == response.status_code