Skip to main content
How to use Knowledge Hub to customize how Identity Agent Force agents detect and flag security issues.

Key Use Cases

  • Non-Human Identity (NHI) security discovery — Define rules for identifying stale service accounts, orphaned app registrations, and over-privileged non-human identities.
  • Separation of Duties (SoD) violation detection — Upload SoD rules or let the agent generate them from user/role/permission data.
  • Dormant account identification — Define what “dormant” means for your organization (last login threshold, activity criteria, app-specific rules).
  • Custom security rules — Define organization-specific detection criteria tailored to your environment.
  • Severity level rules — Define your own issue severity criteria to make alerts easier to filter and more actionable.

How to Add Context

  1. In the left navigation, open Knowledge Hub and click Add Knowledge.
  2. Enter a Name for the entry.
  3. Under Scopes, keep Global if every agent should use the entry. To use it with specific agents only, select Identity Intelligence instead.
  4. Write the rule or background in Context with Text, or switch to File to upload one, such as your SoD rules.
  5. Optionally pick the Applications the context is most relevant to and add Tags, then click Save.
  6. If you chose Identity Intelligence, link the entry to each agent that should use it. Open the agent in Identity Agent Force, click Agent Configuration, and under Knowledge click Add.

How to Scope Context

  • Per agent type — Each Identity Agent Force agent, such as the Entra NHI Security Analyst, AWS NHI Security Analyst, GitHub NHI Security Analyst, or Terminated User Cleanup agent, can have its own context. See the Identity Agent Force Overview for the full list.
  • App-tagged — Point agents to specific app instances (e.g., “only scan this Entra ID instance”).
  • Custom instructions — Provide natural-language instructions that define how issues should be detected and remediated.

Tips for Reliable Results

Identity Agent Force agents analyze your environment using natural language rules. To get the most consistent results:
  • Be precise — The more specific and deterministic your instructions, the more repeatable the results. Instead of “find risky accounts,” specify exact criteria like “accounts with no login in 90+ days that have admin-level permissions.”
  • Test consistency — Run the same query multiple times to verify you get consistent results.
  • Validate against known issues — Compare agent-detected issues against your known ground truth (e.g., confirmed terminated accounts).
  • Use the feedback loop — Dismiss false positives, refine your context rules, and re-run to verify the agent adapts.

Quality Check

After adding context:
  • Run real-world queries through the agent with your data
  • Run the same prompt multiple times and check for consistent results
  • Compare flagged issues against known ground truth
  • Test the feedback loop: dismiss an issue, add context, and re-run. Confirm that the agent adapts.