mirror of
https://github.com/grafana/grafana.git
synced 2025-07-30 20:22:21 +08:00

* Create own legacy store function to list service accounts and update api model * Add service account tokens as a sub resource for service accounts
9 lines
309 B
SQL
Executable File
9 lines
309 B
SQL
Executable File
SELECT o.org_id, u.id, u.uid, u.login, u.email, u.name,
|
|
u.created, u.updated, u.is_service_account, u.is_disabled, u.is_admin
|
|
FROM "grafana"."user" as u JOIN "grafana"."org_user" as o ON u.id = o.user_id
|
|
WHERE o.org_id = 0
|
|
AND NOT u.is_service_account
|
|
AND u.uid = 'abc'
|
|
ORDER BY u.id asc
|
|
LIMIT 1
|