K8s/IAM: Move identity.grafana.app to iam.grafana.app (#92929)

This commit is contained in:
Ryan McKinley
2024-09-05 09:43:54 +03:00
committed by GitHub
parent aae788ae46
commit 9338e40dc3
85 changed files with 142 additions and 143 deletions
@@ -0,0 +1,11 @@
SELECT t.id as team_id, t.uid as team_uid, t.name as team_name, tm.permission
FROM {{ .Ident .UserTable }} u
INNER JOIN {{ .Ident .TeamMemberTable }} tm on u.id = tm.user_id
INNER JOIN {{ .Ident .TeamTable }}t on tm.team_id = t.id
WHERE u.uid = {{ .Arg .Query.UserUID }}
AND t.org_id = {{ .Arg .Query.OrgID }}
{{- if .Query.Pagination.Continue }}
AND t.id >= {{ .Arg .Query.Pagination.Continue }}
{{- end }}
ORDER BY t.id ASC
LIMIT {{ .Arg .Query.Pagination.Limit }};