Goal: to create Grafana user via API with token Service Account
Using Grafana 10.2.1 on Docker.
With the web interface, Service Account created. With ‘Roles’ set as ‘Admin’.
Token also created.
Token tested accesing endpoint /api/access-control/user/permissions
gives result (pasted here: https://pastebin.com/raw/WU89hgGC)
When accesing endpoint to list users /api/users
got access denied response:
{
"accessErrorId": "ACE3192475521",
"message": "You'll need additional permissions to perform this action. Permissions needed: users:read",
"title": "Access denied"
}
Notes: listing/adding user via API using username:password are all good.
(But I prefer to use token Service Accounts rather than username:password)
Where to set the permissions. Any hints?
Thank you