diff --git a/x-pack/plugins/fleet/public/applications/fleet/sections/agent_policy/details_page/components/header/right_content.tsx b/x-pack/plugins/fleet/public/applications/fleet/sections/agent_policy/details_page/components/header/right_content.tsx
index 743dd5186d3b5..5dd391450b0cb 100644
--- a/x-pack/plugins/fleet/public/applications/fleet/sections/agent_policy/details_page/components/header/right_content.tsx
+++ b/x-pack/plugins/fleet/public/applications/fleet/sections/agent_policy/details_page/components/header/right_content.tsx
@@ -19,6 +19,7 @@ import {
EuiDescriptionListDescription,
EuiLink,
EuiToolTip,
+ EuiIconTip,
} from '@elastic/eui';
import { useAuthz, useLink } from '../../../../../hooks';
@@ -26,6 +27,7 @@ import type { AgentPolicy } from '../../../../../types';
import { AgentPolicyActionMenu, LinkedAgentCount } from '../../../components';
import { AddAgentHelpPopover } from '../../../../../components';
import { FLEET_SERVER_PACKAGE } from '../../../../../../../../common/constants';
+import { getRootIntegrations } from '../../../../../../../../common/services';
export interface HeaderRightContentProps {
isLoading: boolean;
@@ -130,36 +132,55 @@ export const HeaderRightContent: React.FunctionComponent
) : (
-
-
-
+
+
+
+
+
+
+
+
+
+ }
+ >
+
+
+
+ {getRootIntegrations(agentPolicy.package_policies || []).length > 0 &&
+ (agentPolicy.unprivileged_agents || 0) > 0 && (
+
+
+ }
/>
-
-
-
-
- }
- >
-
-
+ )}
+
),
},
{ isDivider: true },
diff --git a/x-pack/plugins/fleet/public/applications/fleet/sections/agent_policy/list_page/index.tsx b/x-pack/plugins/fleet/public/applications/fleet/sections/agent_policy/list_page/index.tsx
index b96a2e75ec537..a2e0e6663e5cf 100644
--- a/x-pack/plugins/fleet/public/applications/fleet/sections/agent_policy/list_page/index.tsx
+++ b/x-pack/plugins/fleet/public/applications/fleet/sections/agent_policy/list_page/index.tsx
@@ -16,6 +16,7 @@ import {
EuiBasicTable,
EuiLink,
EuiToolTip,
+ EuiIconTip,
} from '@elastic/eui';
import type { CriteriaWithPagination } from '@elastic/eui/src/components/basic_table/basic_table';
import { i18n } from '@kbn/i18n';
@@ -23,6 +24,7 @@ import { FormattedMessage, FormattedDate } from '@kbn/i18n-react';
import { useHistory } from 'react-router-dom';
import type { AgentPolicy } from '../../../types';
+import { getRootIntegrations } from '../../../../../../common/services';
import { AGENT_POLICY_SAVED_OBJECT_TYPE } from '../../../constants';
import {
useAuthz,
@@ -164,24 +166,45 @@ export const AgentPolicyListPage: React.FunctionComponent<{}> = () => {
- {'('}
-
- }
- >
-
-
- {')'}
+
+ }
+ >
+
+
+ ),
+ }}
+ />
+ {getRootIntegrations(agentPolicy.package_policies || []).length > 0 &&
+ (agentPolicy.unprivileged_agents || 0) > 0 && (
+
+
+ }
+ />
+
+ )}
),
},