Create a Custom Role with Fetch and Deploy Permissions
A NetSuite administrator can create a custom role that includes the permissions needed to fetch from and deploy to NetSuite by:
-
Creating the new role in NetSuite
-
Editing the script deployment records to include the new role
See the following procedures for detailed steps.
To create a custom role
-
In NetSuite, go to Setup > Users/Roles > Manage Roles > New.
-
Fill in the Role record as described in the Customizing and Creating Roles topic.
On the Permission tab, add the following permissions:
Subtab
Role
Level
Lists
Documents and Files
Full
Custom Record Entries
Full
Website (External) Publisher
Full
Setup
Allow JS/HTML Uploads
Full
Custom Lists
Full
Set Up Web Site
Full
SuiteScript
View
SOAP Web Services, REST Web Services
Full
Access Token Management
Full
Log in using Access Tokens
Full
User Access Tokens
Full
-
Save the Role record.
-
Assign the custom role to the Employee record for each user who requires developer access to NetSuite. For more information, see Assign the Administrator or a Custom Role to an Employee Record.
-
To ensure the new custom role can fetch and deploy from NetSuite, you must follow the instructions in the following procedure, To edit Script Deployment records.
To edit Script Deployment records
-
In NetSuite, go to Customization > Scripting > Script Deployments.
-
Set the following filters:
-
Type: RESTlet
-
API Version: All
-
-
Add the custom role to the Roles list on the Audience tab for each of the following Script Deployment records, depending on your implementation:
SuiteCommerce Extension Manager, SuiteCommerce Advanced (Aconcagua release and Later):
Edit each of the following Script Deployment records.
-
customdeploy_ext_mech_deployer_rest
-
customdeploy_ns_sc_ext_mech_restlets
-
customdeploy_ext_mech_web_service_rest
-
customdeploy_ns_sca_deployer_20xx_x_x (Where 20xx_x_x equals the version of SuiteCommerce Advanced you are implementing. For example: customdeploy_ns_sca_deployer_2020_1_0)
SuiteCommerce Advanced and Site Builder Extensions (Kilimanjaro release and Earlier):
Edit the script associated with your implementation.
-
customdeploy_ns_sca_deployer_kilimanjaro
-
customdeploy_ns_sca_deployer_elbrus
-
customdeploy_ns_sca_deployer_mont_blanc
-
customdeploy_ns_sca_deployer_vinson
-
customdeploy_ns_sca_deployer_denali
-
customdeploy_ns_sbe_deployer_elbrus
-
customdeploy_ns_sbe_deployer_kilimanjaro
-
customdeploy_ns_sbe_deployer_mont_blanc
-
customdeploy_ns_sbe_deployer_vinson
-
customdeploy_ns_sbep_deployer_denali
-
customdeploy_ns_sbep_deployer_mont_blanc
-
customdeploy_ns_sbep_deployer_vinson
-
customdeploy_ns_sbep_deployer_elbrus
-
customdeploy_ns_sbep_deployer_kilimanjaro
-
-
Save the Script Deployment record.