Google Apps Script

Class Session

Access session information

From Base Services

This class provides access to Session information which at the moment comprises only of User information.

See also: User

Methods:

MethodReturn ValueDescription
getUserUserGets information about the current user.

method getUser()

Gets information about the current user.

Return Values:

TypeDescription
UserUser object with data from the currently logged in user.

Examples:

// The code below will display the email address of the person running the script
Browser.msgBox(Session.getUser().getEmail());