Jak uzyskać bieżącą nazwę użytkownika logowania w moim pliku skryptu w moim asp.net mvc

Mam plik skryptu, który wywołuje API JSON i muszę wysłać bieżącą nazwę użytkownika logowania w ramach połączenia. Próbowałem: -

    $(document).ready(function () {
        var name = prompt("Please enter your packageid", "test");

        var fullurl = 'http://localhost:8080/jw/web/json/workflow/process/list?j_username=kermit&hash=9449B5ABCFA9AFDA36B801351ED3DF66&loginAs=' + HttpContext.Current.User.Identity.Name + 'packageId=' + name;
        $.ajax({
            type: "GET",
            url: fullurl,
            dataType: "JSONP",
            success: function (result) {
//code goes here

Ale spowoduje to następujący błąd: -„HttpContext” jest niezdefiniowany

questionAnswers(5)

yourAnswerToTheQuestion