Setting Available Without Login

Note:

This topic applies to all versions of SuiteScript.

You can allow Suitelet scripts to be executed without a login. Select the Available Without Login box on the Script Deployment page to allow users without an active NetSuite session to have access to the Suitelet. To ensure that all users can access the Suitelet with or without login, under the Audience subtab on the Script Deployment page, check the All Roles box and clear all values from the Departments, Groups, Employees, and Partners fields.

Note:

The Available Without Login box is available on the Script Deployment page for Suitelets only.

When you select Available Without Login and then save the Script Deployment record, an External URL field is displayed on the Script Deployment page (see following figure). Use this URL for Suitelets you want to make available to users who do not have an active NetSuite session.

The Website feature must be enabled for Clients Scripts to work in externally available Suitelets

Setting Available Without Login section of the Setting Runtime Options page

The following are some uses cases when you might want to make a Suitelet externally available:

Note:

Suitelets are not intended for use in system integration use cases.

Important:

Be aware that the data contained within the Suitelet will be less secure when it is allowed to be accessed (via Suitelet execution) without login.

Errors Related to the Available Without Login URL

Based on the use case for your Suitelet, you will use either the internal URL or the external URL as the launching point for the Suitelet.

Some of the factors determining whether the Suitelet will deploy successfully are the dependencies between the type of URL you are referencing (internal or external), the Suitelet deployment status (Testing or Released), and whether the Select All Roles box has been selected on the Audience subtab of the Script Deployment page. The following table summarizes these dependencies.

Note:

If specific roles, employees, departments, partners, or groups are selected on the Audience subtab or the All Employees or All Partners boxes are checked, external users will receive an error when accessing the Suitelet, even if the Available Without Login box is checked. To ensure access for all external users as well as internal users, check the Available Without Login box and the Select All Roles box. Leave all other fields on the Audience tab empty.

Suitelet URL Type

Deployment Status

Select All Roles check box

Result

internal

Testing

not checked

Suitelet deploys successfully

internal

Testing

checked

Suitelet deploys successfully

internal

Released

not checked

Error message: You do not have privileges to view this page.

internal

Released

checked

Suitelet deploys successfully

external

Testing

not checked

Error message: You are not allowed to navigate directly to this page.

external

Testing

checked

Error message: You are not allowed to navigate directly to this page.

external

Released

not checked

Error message: You do not have privileges to view this page.

external

Released

checked

Suitelet deploys successfully

General Notices