ServiceAccount: Update service account api resource and add service account token (#92972)

* Create own legacy store function to list service accounts and update api model

* Add service account tokens as a sub resource for service accounts
This commit is contained in:
Karl Persson
2024-09-05 13:43:54 +02:00
committed by GitHub
parent 47cd8288cd
commit 2bfa607ad0
32 changed files with 688 additions and 184 deletions
+1 -1
View File
@@ -2,7 +2,7 @@ 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 {{ .Ident .UserTable }} as u JOIN {{ .Ident .OrgUserTable }} as o ON u.id = o.user_id
WHERE o.org_id = {{ .Arg .Query.OrgID }}
AND u.is_service_account = {{ .Arg .Query.IsServiceAccount }}
AND NOT u.is_service_account
{{ if .Query.UID }}
AND u.uid = {{ .Arg .Query.UID }}
{{ end }}