如何解决新 Grafana 用户的角色不会更新
我正在默认 Grafana 组织(主要组织)中创建一个用户,但我发现在创建新用户后角色没有正确更新。我使用的命令如下,
curl -XPOST -H “Content-Type: application/json” -d ‘{
“name”:“hello123”,“Email":"hello123@hello.com”,“org_role”:“Admin”,“password”:“userpassword”
}’ http://admin:admin@grafana.default.svc.cluster.local:3000/api/admin/users
创建用户后,我看到该角色仍显示为查看者而不是管理员。这是输出。
{
“orgId”: 1,“userId”: 2,“email”: “hello123@hello.com”,“name”: “hello123”,“avatarUrl”: “/avatar/41eb033190ea46680aae253e45fc688b”,“login”: “hello123@hello.com”,“role”: “Viewer”,“lastSeenAt”: “2011-02-06T00:05:49Z”,“lastSeenAtAge”: “10y”
}
有人可以帮忙吗?
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。