getting a 'you do not have privileges to view this...
# ask-stanley-ai
a
getting a 'you do not have privileges to view this page' error trying to hit a suitelet. Available without login is true and all internal roles are selected
c
AI generated answer (using internal Slack threads):
Based on the conversations, the error "You do not have privileges to view this page" when trying to access a Suitelet, even though "Available without login" is set to true and all internal roles are selected, could be due to a few reasons: 1. Role Permissions: The Suitelet might be trying to perform an operation that requires specific permissions that the current role does not have. For example, if the Suitelet is trying to load a record that the current role does not have access to, it will throw an INSUFFICIENT_PERMISSION error. In this case, you might need to set up a new role with the necessary permissions. 2. External Roles: If the Suitelet is accessed via an external URL, you need to mark the External Roles for the deployment. This is now a requirement. 3. Script Status: Make sure your script status is not set to testing. The script should be released and not in a testing state. 4. Script Audience: Ensure that you have a valid script audience. The audience roles, departments, groups, employees, and partners should be correctly set. Remember to always check these settings whenever you set up a Suitelet deployment. ****** 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.871032715
Slack thread 2: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.860473692
Slack thread 3: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.858459473
Please provide your feedback on this answer.