Forum Discussion
Yes, JSON includes the dashboard metadata but the widgets field is missing.
Might be permissions related problem.
When i login in the Sisense admin tool i can see the dashboard with widgets.
Do you know which permissions should i have for the dashboard in order to be able to list the widgets in the API?
vladimir hi!
Please try to run the same API with the same user permissions in Sisense Swagger under the Admin tab -> REST API -> 1.0 -> GET/dashboards​/{id} and add the "widgets" attribute to the "expand" parameter:
Please let us know if that works in the native Sisense app. If the user you're using for the API execution has access to the dashboard (it's owned/shared with the user), the API should give you the data requested.
Best Regards, Lily
- vladimir03-06-2024Cloud Apps
Yes i tried it with a different user that has admin permissions and for that user it correctly returns the widgets field; but for regular user, that just has dashboard shared with them, the widgets field is missing.
- Liliia_DevX03-06-2024Sisense Employee
vladimir could you please clarify the user role and access type (like 'Can View' or 'Can Edit') to the dashboard that doesn't provide the widgets data in API? Alternatively, you can raise a Support Ticket so that we continue investigating the behavior you experience with this API.
Best Regards, Lily
- vladimir03-07-2024Cloud Apps
Liliia_DevX Both accounts(one with widgets and one without widgets field) have "Can View" access type. For context, we are using SSO Based Authentication for Compose SDK