GlideUser - getCompanyID()

Returns the current user's company sys_id.

Table 1. Parameters
Name Type Description
None
Table 2. Returns
Type Description
String Company sys_id

Scoped equivalent

To use the getCompanyID() method in a scoped application, use the corresponding scoped method: Scoped GlideUser - getCompanyID().

var currentUser = gs.getUser(); 
gs.info(currentUser.getCompanyID());