ANS-1693 · ROLES, PERMISSIONS & SECURITY
How to Resolve ‘You Do Not Have Privileges’ Error for NetSuite Script Deployments
Address 'You do not have privileges' errors in NetSuite by configuring script deployment execution roles and audience for custom user roles.
Short answer
To fix 'You do not have privileges to view this page' errors for custom roles, navigate to the relevant script deployment. Change the 'Execute As Role' to 'Administrator' and ensure the custom role is explicitly added under the 'Audience' tab. This grants the necessary permissions for the script to run correctly for users with that custom role.
Scenario
Users assigned a custom role may encounter a 'You do not have privileges to view this page' error when attempting to access specific NetSuite functionalities, such as creating email campaigns. This issue can occur even when the custom role appears to have equivalent or greater permissions than a standard role that functions correctly. The error prevents users from performing the intended actions.
Solution
The permission violation error 'You do not have privileges to view this page' for custom roles can be resolved by adjusting the settings of the script deployment associated with the functionality.
Navigate to the relevant script deployment that is causing the permission issue.
On the script deployment record, locate the 'Execute As Role' field and change its value to 'Administrator'.
Go to the 'Audience' subtab within the script deployment record.
Add the specific custom role that is encountering the permission error to the list of roles under the 'Audience' subtab.By making these adjustments, the script will execute with Administrator privileges, and the custom role will be explicitly granted access to utilize the script's functionality, thereby resolving the permission error.
Expert NetSuite Support
Need help with this NetSuite issue?
Roles, Permissions & Security consulting and configuration support
