Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Permissions API #136

Open
jartigag opened this issue Jun 2, 2021 · 4 comments
Open

Permissions API #136

jartigag opened this issue Jun 2, 2021 · 4 comments

Comments

@jartigag
Copy link
Contributor

jartigag commented Jun 2, 2021

Are this kind of Grafana API supported by the tool? I'm specially interested in the folder permissions API,

https://grafana.com/docs/grafana/latest/http_api/folder_permissions/

but as long as i've seen it seems easy to integrate with the backups. Just GET the permissions by folder/dashboard/datasource when backupping and POST them when restoring.

Could I get that with this grafana-backup-tool?

@ysde
Copy link
Owner

ysde commented Jun 5, 2021

Sorry that's not implemented in this tool.

Where can the permissions data be used ?

@jartigag
Copy link
Contributor Author

jartigag commented Jun 6, 2021

When a Grafana instance has users divided in different teams, and each user/team should have access to some dashboards and be restricted from accesing to some others. At now, when restoring that instance with grafana-backup-tool, these adjustments must be written down somewhere else and applied manually in each dashboard/folder.

@ysde
Copy link
Owner

ysde commented Jun 7, 2021

Cool, I see the document show that it will use id when setting permissions, but after backup and restore, not sure how to relate the ids , need to test it or re-design it.

Any PR are welcomed :D

Thanks

@jartigag
Copy link
Contributor Author

Here it is :) #140 Tested in a real environment

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants