February 2018
Intermediate to advanced
226 pages
5h 13m
English
GlideUser or g_user is a class all about the attributes of the user. It is not the biggest class, but some of the properties and methods can be used quite frequently.
One of the most helpful of these is being able to get the user ID, the sys_id of the user, through a property. This can be very helpful to send to another script so that the script knows which user is currently logged in or for getting the user record.
Let's have a look at how to get this ID:
var userSys_ID = g_user.userID;
In the example, the userSys_ID variable will be the sys_id of the logged-in user.
Read now
Unlock full access