Chetan Mahajan
Mega Sage

Hi Piyush,

               gs.getUser() method returns a user object. So you can fetch logged-in users details by using this object.

Example:

var userOBJ= gs.getUser();

gsprintuserOBJgetFirstName()); //print the first name of the user 

 

Kindly mark correct and helpful if applicable