Learn how to configure OAuth 2.0 on your NetSuite integration record β including grant types, redirect URIs, scopes, public clients, and consent policies. For the initial integration record setup, see our Integration Record Guide.
OAuth 2.0 is the industry-standard authorization framework and NetSuite's recommended method for all new integrations. It offers two powerful grant types:
Once you've created your integration record, configure the OAuth 2.0βspecific options on the Authentication subtab.
π Navigation: Setup > Integration > Manage Integrations > [Your Record] > Authentication subtab
myapp://callback)https://netxcel.maayins.com/taskpane.html#/oauth-callbackSelect an OAuth 2.0 Consent Policy:
| Policy | Behavior |
|---|---|
| Always Ask | Default. The consent screen appears every time the OAuth 2.0 code grant flow is initiated. |
| Never Ask | Consent screen is skipped entirely. The integration is auto-approved by the administrator. Not available for NetSuite AI Connector Service scope. |
| Ask First Time | Consent screen appears only on the first authorization. Reappears if scopes change or the system can't determine the user's role/account. |
Optional branding fields:
After configuring all OAuth 2.0 settings, click Save. The confirmation page displays your Client ID and Client Secret.
| Credential | Source | When Generated |
|---|---|---|
| Client ID | Integration Record | When you save the integration record |
| Client Secret | Integration Record | When you save the integration record |
| Access Token | OAuth 2.0 Flow | Programmatically via the authorization or client credentials flow |
| Refresh Token | OAuth 2.0 Flow | Returned with the access token (authorization code grant only) |
Here's a complete reference of every OAuth 2.0 field on the Authentication subtab:
| Field | Description |
|---|---|
| Authorization Code Grant | Enables the OAuth 2.0 authorization code flow for user-interactive integrations. |
| Redirect URI | The URI your application redirects to after authorization. Must use https:// or a custom scheme. HTTP is not supported. Example: https://netxcel.maayins.com/taskpane.html#/oauth-callback |
| Public Client | For distributed integrations where client secret confidentiality can't be guaranteed. Enables refresh token rotation settings. |
| Refresh Token Validity | How long refresh tokens remain valid (1β720 hours, default: 48). Public clients only. |
| Max Time For Token Rotation | How long before users must reauthenticate (1β720 hours, default: 168). Public clients only. |
| Dynamic Client Registration | Allows clients to register without knowing their client ID. Requires Public Client. Returns client ID via matching redirect URI. |
| Client Credentials Grant | Enables machine-to-machine authentication without user interaction. Cannot be used with Public Client. |
| RESTlets | Scope for accessing RESTlets. |
| REST Web Services | Scope for accessing SuiteTalk REST APIs. |
| SuiteAnalytics Connect | Scope for accessing SuiteAnalytics Connect. |
| NetSuite AI Connector Service | Scope for accessing MCP Tools via the AI Connector Service. When used, all other scope boxes, all TBA boxes, all Client Credentials boxes, and the Client Credentials (Machine to Machine) Grant must be cleared. |
| Consent Policy | Controls consent screen behavior: Always Ask (default), Never Ask, or Ask First Time. |
π How to Create a NetSuite Integration Record
The essential first step before configuring any authentication method.
π NetSuite TBA: Complete Setup & Token Management Guide
Step-by-step walkthrough of TBA configuration and token lifecycle management.
Ready to connect NetSuite to your spreadsheets?
NetXcel supports both TBA and OAuth 2.0 to pull live NetSuite data into Excel and Google Sheets.