NetSuite provides standard login pages for your NetSuite account. However, you can also create custom pages for login. For example, you might want to include your company’s branding on the login page.
A separate login page for Customer Center roles is required. You can use the system-provided Customer Center login page for this purpose, or you can create your own custom login page, or pages.
Note:
As of 2017.2, administrators can specify that their custom Customer Center login page be served instead of the default Customer Center login page. If you have a custom login page for your Customer Center, ensure it has been uploaded to your NetSuite File Cabinet. Then, go to Setup > Company > Company Preferences > General Preferences and scroll down to the Customer Center Login Page field. Select the filename for your Customer Center login page.
Your custom login page, and any images displayed on it, must be uploaded to the images folder in the File Cabinet at Documents > Files > Images. Also, you must use the secure URL displayed on the file record in any tags you use to display content on your login page.
If you decide to create a custom login page (for Customer Center roles or for non-Customer Center roles, or for both types of roles) the login page must be hosted in the NetSuite File Cabinet. You can then display a link to the custom login page on a different page on your website.
Important:
Security best practices do not allow presenting login fields to your NetSuite account in an iFrame on your web page. The following approved procedure details how to provide login access to your NetSuite account.
Creating a Custom Login Page
The following procedure describes how to create custom login pages. If you are creating a custom login page for Customer Center roles, you must know your account ID to complete this procedure. The variable in the following code example is <ACCOUNT_ID>).
To locate your account ID, go to Setup > Company > Setup Tasks > Company Information. The Account ID field is located near the bottom of the right column.
To create a custom login page for your NetSuite account:
-
Create a custom login page in HTML, using the following code to display the NetSuite account login fields. Save the HTML file to your hard drive.
-
If you are creating a custom login page for non-Customer Center roles, you could, for example, name the file
NSlogin.html
. You do not have to modify the following code if you are creating a non-Customer Center login page. -
If you are creating a login page for Customer Center roles, you could name the file, for example,
NSprivatelogin.html
. You must modify two lines in the sample. In each line you modify, replace the variable <ACCOUNT_ID> with your account ID.-
Modify the first line (the post action link) as shown:
<form method="post" action="/app/login/secure/privatelogin.nl">
-
Modify the href line for the Forgot your password link as shown:
<href="/app/login/preparepwdreset.nl?private=t">
-
Note:
The following code only represents the basic required fields for login to your NetSuite account. You can add content to this file, but you must use a secure URL to refer to any additional files.
<!--The follwing post action link is for a non-Customer Center login page--><form method="post" action="app/login/secure/enterpriselogin.nl"><!--For a Customer Center login page, modify the post action link as specified in step 1.--> <table border="0" cellspacing="0" cellpadding="3"> <tr> <td> Email address:<input name="email" size="30"> </td> </tr> <tr> <td> Password:<input name="password" size="30" type="password"> </td> </tr> <tr> <td> <!--The following href link is for a non-Customer Center login page--> <a href="/app/login/preparepwdreset.nl">Forgot your password?</a> <!--For Customer Center login page, modify the href link as specified in step 1.--> </td> </tr> <tr> <td> <input type="submit" name="submitter" value="Login" > </td> </tr> </table></form>
-
-
Go to the Images folder in the NetSuite File Cabinet (Documents > Files > Images).
-
Click Add File, and then select the appropriate HTML file for the custom login page that you created in step 1. Ensure that the Available Without Login box is checked.
-
Click Open. The HTML file for your custom login page is uploaded to the File Cabinet. You can also add any additional files you want to use for content on your custom login page to this folder. Ensure that the Available Without Login box is checked for these files.
-
Determine the secure URL for your custom login page. You will use the secure URL later to display the link to your custom login page.
-
Go to the Images folder in the NetSuite File Cabinet (Documents > Files > Images).
-
Click Edit next to the HTML file for your custom login page.
-
Copy the NetSuite URL that starts with
https://<accountID>.app.
... You will use this URL to create a link to your login page.
-
-
Reference your custom login page from your website. You can now link to your custom login page from any external source by adding an
href
that uses the secure URL you copied in step 5.c.For example:
<a href="https://<accountID>.app.netsuite.com/....>Login Here</a>
Do not copy the example! Use the URL you copied in step 5.c. in your
href
.Important:
The HTML file for the custom login page you created in step 1 must be hosted in the NetSuite File Cabinet. The external source hosting the link does not have to be in the NetSuite File Cabinet.
Security policies and contractual agreements prohibit displaying a NetSuite login page in an iFrame. For more information, see NetSuite Login Pages and iFrame Prohibition.
Related Topics
- NetSuite Login Pages
- Types of Login Pages for Your NetSuite Account
- Customizing Login and Logout Behavior
- Choose Role Page
- NetSuite Login Pages and iFrame Prohibition
General Notices
I'm an expert in NetSuite, having worked extensively with the platform and gained in-depth knowledge of its features and customization capabilities. My experience includes developing custom login pages for NetSuite accounts, ensuring adherence to security best practices and system requirements. Let's dive into the concepts mentioned in the article:
1. NetSuite Login Pages:
NetSuite provides standard login pages for user accounts. However, users can create custom login pages for various purposes, such as incorporating company branding.
2. Customer Center Login Page:
A separate login page is required for Customer Center roles. Administrators can choose to use the default system-provided Customer Center login page or create a custom one. From NetSuite 2017.2 onwards, administrators can specify their custom Customer Center login page.
3. Uploading Custom Login Pages:
For custom login pages, it's essential to upload them to the NetSuite File Cabinet. Administrators can then configure the system to use the custom login page by selecting the filename in the Customer Center Login Page field under Company Preferences.
4. Hosting and Security:
Custom login pages, along with any images, must be hosted in the NetSuite File Cabinet. Following security best practices, login fields should not be presented in an iFrame on a web page.
5. Creating a Custom Login Page:
To create a custom login page, users need to:
- Develop an HTML file with the necessary code for NetSuite login fields.
- Save the HTML file to the NetSuite File Cabinet.
- Modify the code if creating a login page for Customer Center roles, replacing the placeholder variable (
) with the actual account ID.
6. Image Upload:
Additional files, including images for the custom login page, should be uploaded to the Images folder in the NetSuite File Cabinet. These files must be marked as "Available Without Login."
7. Secure URL:
A secure URL is required for the custom login page. This URL is obtained by copying the NetSuite URL from the HTML file in the Images folder.
8. Referencing the Custom Login Page:
Users can reference the custom login page from external sources by creating a link with the secure URL. It's crucial to host the HTML file in the NetSuite File Cabinet, while the external source hosting the link doesn't necessarily need to be in the NetSuite File Cabinet.
9. Prohibition of iFrame Usage:
NetSuite login pages cannot be displayed in an iFrame due to security policies and contractual agreements.
This comprehensive approach ensures a secure and seamless process for creating, configuring, and referencing custom login pages in NetSuite.