How to get user info in Scorm xblock


I’m using open edx, Hawthorn version, I need to get user info from the lms and display it inside the scorm package, usually, I was adding javascript code inside my package to get this info like email and username from the LMSs like scorm cloud, moodle, etc. that supporting Scorm or Tincan packages

but on edx i can’t get this user info, my scorm package exported from articulate storyline 360 and to get the user info by javascript code below

  var player = GetPlayer();

/* Get User info from LMS*/
function findLMSAPI(win) {
if (win.hasOwnProperty(“GetStudentID”)) return win;

else if (win.parent == win) return null;

else return findLMSAPI(win.parent);

var lmsAPI = findLMSAPI(this);
var myName = lmsAPI.GetStudentName();
var myEmail = lmsAPI.GetStudentID();
var array = myName.split(’,’);
var newName = array[1] + ’ ’ + array[0];

Please, any advise on that? how can i get these data in scorm xblock