The Zurich release has arrived! Interested in new features and functionalities? Click here for more

Help Needed: ServiceNow to NetSuite Integration Using OAuth 2.0 – "User Not Authenticated" Issue

PriyeshS
Tera Contributor

Hi Community,

I'm currently trying to set up an integration between ServiceNow and NetSuite using OAuth 2.0. On the NetSuite side, I've been granted all the necessary roles and permissions. However, I'm running into a persistent issue.

Whenever I attempt to fetch data from NetSuite using OAuth 2.0, I receive the following error:

"User not authenticated"

To troubleshoot, I also tried using "No Authentication" as a method, but in that case, I get:

"You don’t have any role and permission granted"

Even though I'm using the Client Credentials flow, and passing both the JWT Bearer token and the Access token (generated via a Python script in the command prompt), the integration still fails with the same authentication error.

Here’s what I’ve already done:

  • Ensured proper roles and permissions are granted in NetSuite (Administrator, Full Access to relevant objects).

  • Referred to several official documents from both ServiceNow and NetSuite.

  • Searched extensively on Google and tried different troubleshooting suggestions – but no luck so far.

Has anyone here faced a similar issue or have any guidance on what I might be missing?

Any help or direction would be deeply appreciated!

Thanks in advance,
Priyesh

6 REPLIES 6

Randheer Singh
ServiceNow Employee
ServiceNow Employee

Hi @PriyeshS ,
Can you please share the NetSuite integration documentation that you are following? Based on that I might be able to recommend you the right integration type.

 

Thanks,

Randheer

Hi @Randheer Singh, We don't have any official document available into ServiceNow. 

I'm referring to the NetSuite documentation- 

 https://docs.oracle.com/en/cloud/saas/netsuite/ns-online-help/section_162686838198.html

Even I'm connected with ServiceNow and NetSuite Team as well for the support but still it is taking too much time what I expected. 

 

Any help would be appreciated.

 

Regards
Priyesh S

Hi @PriyeshS ,

NetSuite integration requires a Client credential grant with a private Key JWT for client authentication. 

We do support it.
https://www.servicenow.com/docs/bundle/washingtondc-platform-security/page/integrate/authentication/...

Thanks,

Randheer

Hi @Randheer Singh , Yes, I have used a Private key, certificate key and generated the JWT and assertion bearer token as well and tried to get the data as well still it gives the same error and if we use no Authentication we get the error as "You don't have permission to access the data" even though the NetSuite admin had gave me an access to view and edit the data as well. Overall I have full access from NetSuite.

 

Regards
Priyesh