[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 7b24c4404d)

Co-authored-by: Misi <mgyongyosi@users.noreply.github.com>
pull/98118/head
grafana-delivery-bot[bot] 7 months ago committed by GitHub
parent 7d003d7394
commit 6d9925ba21
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 2
      public/app/features/auth-config/fields.tsx

@ -473,7 +473,7 @@ export function fieldMap(provider: string): Record<string, FieldData> {
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',

Loading…
Cancel
Save