Establishing Token-Based Authentication within NetSuite
Use these guidelines to establish communication with Oracle NetSuite, allowing access to retrieve specific information within your Oracle NetSuite account:
• Consumer Key
• Consumer Secret
• Token ID
• Token Secret
Step 1: Creating Consumer Key and Consumer Secret
After logging into your NetSuite account, navigate to Setup > Integration > Manage Integrations > New. Enter integration specifics and proceed as follows :
1. Within Authentication, opt for Token-based Authentication.
2. Save your settings. The Client Credentials will appear. Copy the Consumer Key/Client ID and Consumer Secret/Client Secret, ensuring to store this information in a document for future reference. Access to this data is unavailable once you leave this interface.
Step 2: Generating a New Role
1. In Subsidiary Restrictions, choose 'All' for Accessible Subsidiaries.
2. In Authentication, opt for 'Web Services Only Role.
3. Within the Permissions tab, choose and provide Full permissions for the following items:
Transactions
Lists
Setup
Note: Ensure 'Full' level for all privileges.Additional permissions can be granted based on specific needs; however, omitting any item from the list below might result in an error. After setting up the privileges, click Save to proceed
Step 3: Role Assignment to a User For better tracking and auditing, it's advisable to create a dedicated user rather than assigning this role to an existing one. Follow these steps:
Step 4: Generating an Access Token
- Go to Setup > Users/Roles > Access Tokens > New.
- Choose the Application name.
- Select the previously created User.
- Choose the role from Step 2.
- Save your settings. The Token ID / Secret will be shown. Copy and save the Token ID and Token Secret in a document for future reference. This information won't be accessible once you leave this screen. Storing this data in a plain text editor is recommended.
Step 5: Retrieving Account ID