Using JavaScript tp Retrieve user's name from Docebo LMS when publishing to xAPI

Jun 19, 2023

I am using Storyline 360, and I want to run a javascript to automatically retrieve the user's name from the LMS (Docebo) and save it to a variable.

I am able to do this successfully when published in SCORM. However, I am unable to do it when published to xAPI.

When published to xAPI, I am able to update the variable, however rather than update it to my name (like it does in SCORM), it updates the variable to (blank). Somehow the name cannot be retrieved from the LMS.

I don't know if this is a limitation with Articulate or the LMS. According to ChatGPT, it is most likely a limitation with Articulate. 

I can post both the SCORM and xAPI javascript I am using if that would be helpful, but I don't think the issue is with the JS, but rather, a limitation with the LMS or Articulate.

Does anyone have any pointers or ideas? I need to figure this out.

Thanks! 

3 Replies
Jürgen Schoenemeyer

>According to ChatGPT, it is most likely a limitation with Articulate. 

NO - this is a limitation of xAPI (queries are only possible to the LRS, not the LMS)

for xAPI it is not possible with scormdriver.js (there is no connection from course to LMS)

have a look in this video

https://www.youtube.com/watch?v=OGYTxy-ru4E&t=422s

the user name (if there is one) is encoded in the start url of the course

the details dependes on the LMS you use - probably for security reasons there is no name transmitted at all, but only a anonymous ID