Returning User Information

Is anyone aware of a function call, etc. that will return the id of the currently logged on user?

Docent 6.x had a method (user.userID) that would return the UserID, I'm wondering if TotalLMS has something similar.

Thanks,
Ernie

Returning User Information

Hi

You say Docent 6.X has a method for returning users that are logged in, do you have any more info about this?

Thanks

Returning User Information

It's part of the USER object. The format is user.userid. We used it in a jsm script to control access to custom reports created with Crystal Reports. Below is an example. The if section contained a report hyperlink, which the user could view if the condition was met.

<DOCENT>
var managerID = 0;
while (manager_rs.next())
{
if (manager_rs.colValue("managerID") == user.userid) {

</DOCENT>