动态地添加文件夹中读取/编辑grafana仪表板的权限到用户

发布于 2025-02-10 07:34:31 字数 221 浏览 1 评论 0 原文

我想自动化创建用户并添加Permissons。在Grafana中,Dynamicaly是否可以根据广告组为用户增加了权限吗?

可以说用户输入他的数据,包括他所在的广告组,并且该应用程序将创建文件夹,并将读取/编辑权限仅针对广告组中的用户设置(可以是任何组)?

我知道您可以根据配置文件中的广告组将Viewer/Editor/Admin角色设置为人员,但是是否可以使用其HTTP API进行这种动态性?

I want to automatize creating users and adding permissisons. Is it possible in grafana, to dynamicaly adds permission to user based on AD group?

Lets say user inputs his data including AD group he is in, and the app will create folder, and sets read/edit permissions only to users that are in AD group (that can be any group )?

I know you can set viewer/editor/admin roles to people based on AD group in config file, but is it possible to do so dynamicaly, with their http api?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

允世 2025-02-17 07:34:31

您可以使用grafana http api:

logic 什么应在提出请求之前为哪个用户设置权限,以便在代码中确定哪个用户(例如,基于您提到的用户输入)。

You can set permissions for folders and permissions for dashboards using the Grafana HTTP API:

The logic, what permission should be set for which user, needs to be determined in your code (e.g. based on the user input you mentioned) before making the request.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文