1

Returns a reference to the user object for the currently logged-in user.– gs.getUser()

Returns a sys_id of current logged in user. — gs.getUserID()

Returns the User ID for the currently logged-in user. — gs.getUserName()

Returns the display value for the currently logged-in user.– gs.getUserDisplayName()

Returns the first name of the currently logged-in user.– gs.getUser().getFirstName();

Returns the last name of the currently logged-in user.– gs.getUser().getLastName();

Returns the email address of the currently logged-in user.– gs.getUser().getEmail();

Returns the department sys_id of the currently logged-in user.– gs.getUser().getDepartmentID();

Returns the company sys_id of the currently logged-in user.– gs.getUser().getCompanyID();

Returns true if the user has any admin role– gs.getUser().hasRoles()

Returns true if the user has one of the given roles, false otherwise.– gs.hasRole('itil,admin')

Returns true if the user is a member of the given group — gs.getUser().isMemberOf(current.assignment_group)

Returns a list of all groups that the currently logged-in user is a member of.– gs.getUser().getMyGroups();

Returns the manager sys_id of the currently logged-in user.– gs.getUser().getManagerID();

Returns the domain display value of the currently logged-in user — gs.getUser().getDomainDisplayValue()

Returns the location of the currently logged-in user.– gs.getUser().getLocation();

GlideSystem (gs) user object ServiceNow
admin Changed status to publish December 19, 2023