Organization Role is not updating for newly created Grafana users

Hi,

I am creating a user in the default organization (main organization), but i see the role has not updating correctly after creating the new users.

Blockquote
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

After creating the user, I see the role is still showing as Viewer and not Admin. Here is the output

Blockquote
{
“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”
}
Blockquote

Can somebody help on this please?

This topic was automatically closed after 365 days. New replies are no longer allowed.