Entities
Entity Record Restrictions for Scripting on Administrator Role
This section describes entity record restrictions for scripting on the Administrator and Full Access roles. Note that these restrictions apply to all versions of SuiteScript and all NetSuite environments (see Understanding NetSuite Account Types).
You cannot perform these actions with SuiteScript:
-
Create an entity record where any role is set to Administrator or Full Access
-
Delete an entity record where any role is set to Administrator or Full Access
-
Edit an entity record so that the entity gains an Administrator or Full Access role
-
Edit an entity record so that the entity loses an Administrator or Full Access role
-
Edit the password or email field value on an entity record where any role is set to Administrator or Full Access
These restrictions contribute to improved security. Scripts that break them throw an error message: Script Security Violation: Unauthorized attempt to <operation> entity with <role> role by SuiteScript!
As of 2019.1, changes have been made to the Full Access role, in preparation for its deprecation. For details, see Full Access Role (Deprecated).
Entity Record Types
The following entity records are scriptable in SuiteScript: