From 7b24c4404df86eb5f02d733a20237a0375987668 Mon Sep 17 00:00:00 2001 From: Misi Date: Mon, 16 Dec 2024 15:59:59 +0100 Subject: [PATCH] Fix: Show organization attribute path only for GrafanaAdmins on the UI (#98002) * Show organization attribute path only for GrafanaAdmins * prettier --- 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',