Prerequisites
- Enable SuiteCloud > OAuth 2.0 in Setup > Company > Enable Features before starting.
- Role Permissions must match the scopes you intend to use.
Please note: Only RESTlets, REST Web Services, and SuiteAnalytics Connect are supported.
Steps for configuring
- Log in with Administrator role
- Ensure you have Administrator privileges to configure integrations.
- Create an Integration Record
- Navigate to Setup > Integration > Manage Integrations > New.
- Enter a Name and enable the OAuth 2.0 option.
- Select the Client Credentials grant type.
- Define the required Redirect URI only if using other grant types (not needed for M2M).
- Save the record to generate a Client ID and Client Secret.
- On the integration record, select the scopes required for your use case:
- RESTlets
- REST Web Services
- SuiteAnalytics Connect (Note: SOAP Web Services are not supported with OAuth 2.0.)
- Create OAuth 2.0 Client Credentials Setup
- Navigate to Setup > Integration > OAuth 2.0 Client Credentials Setup > New.
- Fill in the following fields:
- Entity: Select the employee record representing the integration user.
- Role: Choose a role with permissions aligned to your scopes.
- Application: Select the integration record created earlier.
- Save the setup.
- After saving, you’ll see the Client ID and Client Secret associated with the integration. These values are used to request access tokens via the OAuth 2.0 token endpoint.
Use the Client ID and Client Secret to request an access token from NetSuite’s OAuth 2.0 token endpoint.
Tokens expire after a set duration, refresh by re-requesting with the same credentials.
No certificate/private key is required for M2M (JWT Bearer Grant uses certificates, not Client Credentials).