get error: Permission ViolationPermission Violatio...
# ask-stanley-ai
r
get error: Permission ViolationPermission Violation: You need a higher level of the 'Lists -> Documents and Files' permission to access this page. Please contact your account administrator. Select a different role from the list below. But that role has full access
c
AI generated answer (using internal Slack threads):
It seems like you're encountering a permission violation error even though the role you're using has full access. This issue can occur due to a few reasons: 1. Incorrect Role ID: Ensure that you're using the correct Role ID in your SuiteScript or while setting up your access token. An incorrect Role ID can lead to permission issues even if the role has full access. 2. Event Scripts: Check if there are any event scripts on the record type you're accessing and the permission level they're running as. If these scripts are running as a different role, it might cause permission issues. 3. Role Settings: Make sure that the role you're using has full access to the necessary permissions. For example, if you're dealing with customers, the role should have full access to 'Lists -> Customers'. Similarly, for dealing with documents and files, the role should have full access to 'Lists -> Documents and Files'. Also, ensure that 'Allow JS Uploads' and 'Web Services' are set to Full. 4. Access Token Role: If you're using an access token, ensure that it's created with a role that has the necessary permissions. If your company policy allows, you could create an access token in the administrator role. Remember to untick all other roles and only select the role with the necessary permissions. If you're still facing issues, you might need to review your role settings or the way you're using the role in your SuiteScript. ****** 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.859407365
Slack thread 2: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.85230422
Slack thread 3: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.843182325
Please provide your feedback on this answer.