Hi all! I would appreciate some help here, I’m not sure what I’m doing wrong. Maybe some configurations? See below.
- What Grafana version and what operating system are you using?
Grafana OSS in Docker. Image: grafana/grafana:latest
- What are you trying to achieve?
Requesting all the available dashboards for a certain user.
- How are you trying to achieve it?
I’m using the api from grafana, more specific, this endpoint: /api/search.
I’m using the bearer token I generated on a service account.
Because I want to use user based authentication, I’m using user based permissions on my dashboards and not role based permissions, see screenshot:
- What happened?
When doing the api request with this configuration, I get back an empty array (I tested this call on every user).
However, when I add the role “Editor”, I get the result I would expect:
- What did you expect to happen?
I expect to get the result I got when adding the role “Editor”, but without needing to have the role “Editor”.
- Can you copy/paste the configuration(s) that you are having problems with?
No.
- Did you receive any errors in the Grafana UI or in related logs? If so, please tell us exactly what they were.
No.
- Did you follow any online instructions? If so, what is the URL?
I followed the api documentation:
Dashboard permissions:
Dashboard api:
Thank you!