ANS-1523 · SUITESCRIPT DEVELOPMENT
How to Configure a NetSuite Suitelet for Unauthenticated Web Store Access
Properly deploying a Suitelet ensures it can be accessed externally via AJAX calls from a web store without requiring user login.
Short answer
To enable unauthenticated AJAX access for a Suitelet, ensure its deployment is set to 'Released' and 'Available Without Login'. Crucially, configure the Audience tab by selecting 'Online Form User' in External Roles and clearing other audience selections to permit external access from a web store.
Scenario
A user needs to access a NetSuite Suitelet from an external web store using an AJAX call. The challenge arises when the web store user is not logged into NetSuite, requiring the Suitelet to be accessible without authentication. This setup is essential for integrating external applications with NetSuite functionalities.
Solution
To configure a Suitelet for unauthenticated access from an external web store, follow these steps on the script deployment record:
Ensure the Suitelet's script deployment is set to
Released.Verify that the
Available Without Logincheckbox is marked.Navigate to the
Audiencetab on the script deployment record.In the
External Rolesfield, selectOnline Form User.Clear any selections in the
Departments,Groups,Employees, andPartnersfields to ensure unauthenticated access.
Expert NetSuite Support
Need help with this NetSuite issue?
SuiteScript Development consulting and configuration support
