From 6d9925ba21ee429bab2f4901e800afc964851eb8 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:20:09 +0200 Subject: [PATCH] [v11.3.x] Fix: Show organization attribute path only for GrafanaAdmins on the UI (#98044) 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 5f81ee11bde..7214f79cfd2 100644 --- a/public/app/features/auth-config/fields.tsx +++ b/public/app/features/auth-config/fields.tsx @@ -473,7 +473,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',