问题描述
我正在默认 Grafana 组织(主要组织)中创建一个用户,但我发现在创建新用户后角色没有正确更新。我使用的命令如下,
curl -XPOST -H “Content-Type: application/json” -d ‘{
“name”:“hello123”,“Email":"[email protected]”,“org_role”:“Admin”,“password”:“userpassword”
}’ http://admin:[email protected]:3000/api/admin/users
创建用户后,我看到该角色仍显示为查看者而不是管理员。这是输出。
{
“orgId”: 1,“userId”: 2,“email”: “[email protected]”,“name”: “hello123”,“avatarUrl”: “/avatar/41eb033190ea46680aae253e45fc688b”,“login”: “[email protected]”,“role”: “Viewer”,“lastSeenAt”: “2011-02-06T00:05:49Z”,“lastSeenAtAge”: “10y”
}
有人可以帮忙吗?
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)