Permission Error: insights.api.get_doc – Need 'read' permission on Insights Chart

Hi everyone,

I’m facing a permission issue while working with Frappe Insights.

Error Message:

insights.api.get_doc PermissionError  
You need the 'read' permission on Insights Chart v3 orlaemm6po to perform this action.

What I’m Trying to Do:

I’m trying to access or load an Insights Chart, but the system is throwing a permission error.

Details:

  • Doctype: Insights Chart

  • Chart Name: v3 orlaemm6po

  • Error occurs when the system calls: insights.api.get_doc

  • The user already has basic role permissions, but still this error appears.

Question:

How can I properly give Read permission for an Insights Chart?
Is there any additional role or special permission required for Insights?

I’ve attached a screenshot of the error for reference.

Thanks in advance!

Hi,

1. Insights roles:

  • Insights User: basic like editing, creating charts
  • Insights Admin: setting Insights specific settings

2. Your user may not have permission to view the source data, if permissions are enabled in Insights Settings

Can you guide me to set permission for that user ?

Go to: Settings → User → → Roles & Permissions

Either of them are fine:

Thanks for the response , We have already configured the required Roles and Permissions under
Settings → Users → Roles & Permissions.

In addition, we verified the User Permission DocType for both the Insights User and Admin accounts. All necessary permissions appear to be correctly set.

However, we are still facing the same issue. Could you please help us identify if anything else needs to be enabled or configured?