Hi there, I’m trying to run a SuiteQL query using ...
# suiteql
m
Hi there, I’m trying to run a SuiteQL query using OAuth, however when I tried to call the endpoint (https://app-id.suitetalk.api.netsuite.com/services/rest/query/v1/suiteql) using this SQL:
Copy code
SELECT * from customers
 I received this error:
Copy code
{"type":"<https://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html#sec10.4.2>","title":"Unauthorized","status":401,"o:errorDetails":[{"detail":"Invalid login attempt. For more details, see the Login Audit Trail in the NetSuite UI at Setup > Users/Roles > User Management > View Login Audit Trail.","o:errorCode":"INVALID_LOGIN"}]
In the Login Audit Trail, there’s this error InsufficientPermissions in the Details column (IP addresses and other details redacted). At a loss figuring out what’s wrong. Any help is very much appreciated, thank you!