Generate Token-Based Authentication Keys in NetSuite
NetSuite Token Based Authentication
The NetSuite user you set up to integrate
with Adaptive Planning requires a role with token-based authentication access. You can
grant token-based authentication for:- A new custom NetSuite role with only the specific permissions needed for integrating, following security best-practices
- Or the existing administrator (role id=3) web services role
Prerequisites
- Log in to NetSuite as an administrator
- Review the NetSuite account, email address, and NetSuite role you already use in Adaptive Planning
Basic Steps
- Decide if you want to use a custom role to integrate Adaptive Planning with NetSuite (recommended) or use the existing administrator (role id=3) role
Configure a user with a custom role for integrating with Adaptive Planning (recommended)
- Turn on token-based authentication in NetSuite.
- Create the integration record for the administrator. You cannot use the previously existing "Adaptive Insights Integration" record.
- Assign the token-based authentication role to a user whose credentials will be used for setting up the integration with Adaptive Planning.
- Create an access token for integrating with Adaptive Planning.
- Enter the keys in the Adaptive Planning user interface
Configure an existing administrator (role id=3) for integrating with Adaptive Planning
- Turn on token-based authentication in NetSuite.
- Create the integration record for the administrator. You cannot use the previously existing "Adaptive Insights Integration" record.
- Create the user access tokens for the administrator.
- Enter the keys in the Adaptive Planning user interface.
Decide if You Want to Use a Custom Role to Integrate Adaptive Planning with NetSuite
If you want to follow best-practices, create a custom role with only the specific permissions needed to integrate NetSuite
with Adaptive Planning. Grant this custom role token-based authentication.If you
already have an administrator (role id=3) you want to continue using for
integration, you can create an integration record and user access tokens for it. The
steps for an administrator appear at the bottom of this article.
Configure a User with a Custom Role for Integrating with Adaptive Planning (Recommended)
- Turn on Token-based Authentication in NetSuite For the Role
- Navigate toSetup > Company > Enable features > Suite Cloud > Manage Authenticationand selectToken-Based Authentication.
- Navigate toSetup > Users/Roles > Manage Rolesand clickNewto create a new custom role. Name the custom role "Adaptive Planning Integration."
- Give the role the permissions needed to integrate with Adaptive Planning with token-based authentication and add the permission "Setup > Log in Using Access Tokens - FULL."For NetSuite Basic's permission read this article.For NetSuite enhanced integrations (NetSuite data sources in Integration) use these typical permissions.
- Save the role.
- Assign the Token Based Authentication Role
- Navigate toLists > Employees > Employees > Edit Userand select the user who manages data integration within Adaptive Planning.
- ClickAccess > Roles
- Assign the custom role you just created to the user.
- Navigate toSetup > Integration > Manage Integrations > New.
- Enter the name "Adaptive Planning Integration" and click Token-based Authentication. Double check that State is set to Enabled.
- ClickSave. This creates an Integration Record you will use to create access tokens.
- Copy and paste the following values for the integration record into a text file and save the file in a secure location you can access in the future:
- Application ID (only used for your record keeping, not used by Adaptive Planning)
- Consumer Key
- Consumer Secret
Copy the information to a secure location before you navigate away from this page. It only displays once and can't be retrieved later.These values are required to complete integration with Adaptive Planning. Next, you'll generate the Access Token and and Access Token ID values for the NetSuite user associated with your Adaptive Planning integration.- Create an Access Token
- Navigate toSetup > Users/Roles > Access Tokensand clickNew.
- Select the application name "Adaptive Planning Integration" you created in the previous steps.
- Select the user and then the role you created. Select "Adaptive Planning Integration" and associate the Adaptive Planning integration record.
- NetSuite generates a response. Copy and paste the Access Token ID and the Access Token into the secure location you created in the previous steps.
Copy the response before you navigate away from this page. It only displays once and can't be retrieved later.These values are also required to complete integration with Adaptive Planning.- Enter the Keys in Adaptive Planning
- For NetSuite Data Sources in Integration and NetSuite basic, follow these steps to enter your keys.
Configure an Existing Administrator (role id=3) for Integrating with Adaptive Planning
Existing administrator (role id=3) web services users follow different steps than custom roles. Where administrators (role id=3) create access tokens within NetSuite is also different.
- Create the Integration Record for an Administrator
- For existing administrator (role id=3) web services users, begin by creating the integration record.
- Navigate toSetup > Integration > Manage Integrations > New.
- Enter a Name "Adaptive Planning Integration" and click Token-based Authentication. Double check thatStateis set toEnabled.
- ClickSave. You just created an Integration Record you will use for generating access tokens.
- Copy and paste the following values for the integration record into a text file and save the file in a secure location you can access in the future:
- Application ID (only used for your record keeping, not used by Adaptive Planning)
- Consumer Key
- Consumer Secret
Copy the information to a secure location before you navigate away from this page. It only displays once and can't be retrieved later.These values are required to complete integration with Adaptive Planning. Next, you'll generate the Access Token and and Access Token ID values for the NetSuite user associated with your Adaptive Planning integration. - Create the User Access Tokens for an Administrator
- Log in as the Administrator to NetSuite
- ClickManage Access Tokensin the Settings Portlet
- ClickNew My Access Token.
- Select the application "Adaptive Planning Integration" you want to associate the access token with.
- ClickSave.
- NetSuite generates a response. Copy and paste the Access Token ID and the Access Token into the secure location you created in the previous steps.
Copy the information to a secure location before you navigate away from this page. It only displays once and can't be retrieved later.These values are required to complete integration with Adaptive Planning.- Enter the Keys in Adaptive Planning
- For NetSuite Data Sources in Integration and NetSuite basic, follow these steps to enter your keys.
- View Token-based Authentication Audit Logs in NetSuite
- You can view an audit log in NetSuite to check if the correct token elements get sent to NetSuite from Adaptive Planning during login attempts.
- Log in to NetSuite.
- Go toSetup > Users/Roles > Login Audit Trail Search.
- SelectUse Advanced Search.
- Select theResultstab.
- Add the following to the results:
- Token-based Access Token Name
- Token-based Application Name
- Detail
- Submit the search.
- Sort the most recent logins to the top and review the status and detail columns for your login attempts.