Name

sn_cd.cd_UserTables

Description

API to get all extensions of the User and HR profile table (if HR is installed) and all extensions

Script

var cd_UserTables = Class.create();
cd_UserTables.prototype = {
  initialize: function() {
  },
  
  /**
  * Get all extensions of the User and HR profile table (if HR is installed) and all extensions
  */
  process: function() {
  	var tables = new GlideTableHierarchy('sys_user').getAllExtensions();
  	tables = tables.concat(new GlideTableHierarchy('sn_hr_core_profile').getAllExtensions());
  	return tables;
  },

  type: 'cd_UserTables'
};

Sys ID

49fd76e13b130300d901655593efc48f

Offical Documentation

Official Docs: