Analytics - Generating Tokens & Secrets for Direct Queries
Prerequisites
- Version: 0.2.0 and above
- Required Role: NetSuite Administrator Role
Overview
SuperSync Analytics now supports direct queries from external platforms such as PowerBI and Microsoft Excel. To enable this, a Token and Secret must be generated, which allows external access to your NetSuite account for direct queries.
This document outlines the process of creating a dedicated user role and generating the required Token and Secret for accessing NetSuite data externally.
User Role Setup
Before generating the Token and Secret, itβs critical to create a new User Role in NetSuite with read-only access to the specific record types required for reporting. This ensures that external access is limited in scope, protecting sensitive data while enabling external reports.
Steps to Create a New Role:
- Navigate to:
Setup > Users/Roles > Manage Roles
- Create a New Role with the following considerations:
- Restrict access to only the necessary record types for reporting.
- Provide read-only permissions to ensure the role can query data but not modify it.
- Name the Role according to its purpose, such as "PowerBI Reporting" or "Excel Data Feeds."
- Assign the Role to the users who will generate the tokens.
Refer to NetSuite's online help documentation for detailed instructions on role setup.
Generating a Token & Secret
For Individual Users:
Log into NetSuite under the newly created role.
Navigate to the token generation option on the dashboard.
Select SuperSync Analytics as the Application Name.
Upon saving, NetSuite will display the Token ID and Token Secret.
- Important: These token values will only be shown once upon creation. Ensure you securely store them as they cannot be retrieved later.
- The tokens are specific to SuperSync Analytics and cannot be used with other applications to access NetSuite.
For Administrators Generating Tokens:
Administrators can generate tokens for users by following these steps:
Navigate to:
Setup > Users/Roles > Access Tokens > New
.Select the appropriate User and Role.
Set the Application Name to SuperSync Analytics.
Save the record to generate the Token ID and Token Secret.
- Important: For individual users, tokens will only be displayed once, so store them securely.