nerdexam
ServiceNow

CAD · Question #20

Which one of the following is part of the client-side scripting API?

The correct answer is B. GlideUser object (g_user). The GlideUser object (g_user) is part of the client-side scripting API that provides information about the current user and the user's preferences. It can be used in Client Scripts and UI Policies to customize the user interface based on the user's role, language, time zone…

Submitted by ahmad_uae· Apr 18, 2026Application User Interface

Question

Which one of the following is part of the client-side scripting API?

Options

  • Aworkflow.scratchpad
  • BGlideUser object (g_user)
  • Ccurrent and previous objects
  • DGlideSystem object (gs)

How the community answered

(44 responses)
  • A
    7% (3)
  • B
    86% (38)
  • C
    5% (2)
  • D
    2% (1)

Explanation

The GlideUser object (g_user) is part of the client-side scripting API that provides information about the current user and the user's preferences. It can be used in Client Scripts and UI Policies to customize the user interface based on the user's role, language, time zone, etc. The workflow.scratchpad object is only available in Workflow scripts, which are used to automate processes on the platform. The current and previous objects are only available in server-side scripts, such as Business Rules and Script Includes. The GlideSystem object (gs) is also a server-side object that provides methods for logging, debugging, date and time calculations, etc.

Topics

#Client-side scripting#GlideUser#g_user#Scripting API

Community Discussion

No community discussion yet for this question.

Full CAD Practice