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:

  1. Ensure the Suitelet's script deployment is set to Released.

  2. Verify that the Available Without Login checkbox is marked.

  3. Navigate to the Audience tab on the script deployment record.

  4. In the External Roles field, select Online Form User.

  5. Clear any selections in the Departments, Groups, Employees, and Partners fields to ensure unauthenticated access.

Expert NetSuite Support

Need help with this NetSuite issue?

SuiteScript Development consulting and configuration support

Talk to a consultant