Modules
Objects/Functions
SuiteScript 2.0
// Please search https://system.netsuite.com/app/help/helpcenter.nl?search=User.roleCenter for more information.
N/runtime Module
User.roleCenter
Property Description:
The string value of the center type, or role center, for the current user.
The NetSuite UI adjusts automatically to different users' business needs. For each user, NetSuite displays a variable set of tabbed pages, called a center, based on the user's assigned role. Each NetSuite center provides, for users with related roles, the pages and links they need to do their jobs.
For more information about NetSuite centers, see Centers Overview.
Type:
string (read-only)
Supported Script Types:
Client and server scripts
For more information, see SuiteScript 2.0 Script Types.
Module:
N/runtime Module
Since:
2015.2
Search NetSuite -
https://system.netsuite.com/app/help/helpcenter.nl?search=User.roleCenter
Example:
// Code Example 1
// Add additional code
//...
var userObj = runtime.getCurrentUser();
log.debug('String value of current user center type (role center): ' + userObj.roleCenter);
//...
// Add additional code
//SOURCE: https://system.netsuite.com/app/help/helpcenter.nl?fid=section_4296670081.html