Are N/query module's functions and objects limited...
# ask-stanley-ai
a
Are N/query module's functions and objects limited to what data in NetSuite they can access, by the permissions of the role that's executing the script? Please provide links to the documentation that explains this.
c
AI generated answer (using internal Slack threads):
Yes, the N/query module's functions and objects are indeed limited to what data in NetSuite they can access, by the permissions of the role that's executing the script. In NetSuite, permissions are set at the role level and these permissions determine what records a role can access and what actions it can perform. When a script is executed, it runs with the permissions of the role that is executing the script. If the role does not have the necessary permissions to access certain data, the script will not be able to access that data either. For example, if a role does not have the 'Perform Search' permission, a script running under that role would not be able to perform searches using the N/query module. Similarly, if a role does not have the 'SuiteAnalytics Workbook' permission with 'Edit' access level on the Reports subtab of the Permissions tab, a script running under that role would not be able to access SuiteAnalytics Workbook data. Here are the links to the NetSuite documentation that explain this: 1. [Permissions Documentation](https://system.netsuite.com/app/help/helpcenter.nl?fid=section_N326485.html) 2. [SuiteAnalytics Workbook Permission](https://system.na0.netsuite.com/app/help/helpcenter.nl?fid=section_1504014192.html) ****** Disclaimer: This response was generated by an artificial intelligence assistant based on previous conversations from multiple Slack channels, and may contain inaccuracies or mistakes. ******
Slack thread 1: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.8752442
Slack thread 2: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.858581603
Slack thread 3: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.856323302
Please provide your feedback on this answer.