From f6f782033f347b5ad30cdcb0621c25f50bceddc5 Mon Sep 17 00:00:00 2001 From: "grafana-delivery-bot[bot]" <132647405+grafana-delivery-bot[bot]@users.noreply.github.com> Date: Mon, 16 Dec 2024 17:21:21 +0200 Subject: [PATCH] [v11.2.x] Fix: Show organization attribute path only for GrafanaAdmins on the UI (#98045) Fix: Show organization attribute path only for GrafanaAdmins on the UI (#98002) * Show organization attribute path only for GrafanaAdmins * prettier (cherry picked from commit 7b24c4404df86eb5f02d733a20237a0375987668) Co-authored-by: Misi --- public/app/features/auth-config/fields.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/app/features/auth-config/fields.tsx b/public/app/features/auth-config/fields.tsx index e210d39707d..c763c26a939 100644 --- a/public/app/features/auth-config/fields.tsx +++ b/public/app/features/auth-config/fields.tsx @@ -471,7 +471,7 @@ export function fieldMap(provider: string): Record { label: 'Organization attribute path', description: 'JMESPath expression to use for organization lookup.', type: 'text', - hidden: !['generic_oauth', 'okta'].includes(provider), + hidden: !(['generic_oauth', 'okta'].includes(provider) && contextSrv.isGrafanaAdmin), }, defineAllowedGroups: { label: 'Define allowed groups',