# Identi Patterns > Identi Patterns is a library of identity and access management (IAM) patterns written by Trevonix identity architects. Each pattern pairs a recurring problem with a vendor-neutral solution and step-by-step recipes for Ping Identity, Okta, Microsoft Entra and Saviynt. Published by Trevonix (https://www.trevonix.com). Public content is licensed CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/); credit "Trevonix, Identi Patterns" and link to the pattern. Each pattern has a stable ID (for example AGT-001), a maturity label (Proven in production, Reference build, Documented), and recipes for Ping Identity, Okta, Microsoft Entra, Saviynt and other products. Every pattern is available as Markdown by adding .md to its URL. ## Patterns - [AGT-001: Agent as a first-class identity with an accountable sponsor](https://patterns.trevonix.com/patterns/agt-001-agent-as-a-first-class-identity-with-an-accountable-sponsor.md): Register every AI agent as its own identity, with a named human sponsor accountable for its purpose, access and retirement. - [AGT-002: On-behalf-of delegation: the user as subject, the agent as actor](https://patterns.trevonix.com/patterns/agt-002-on-behalf-of-delegation-the-user-as-subject-the-agent-as-actor.md): Let an agent act for a signed-in user with a short-lived token that names both of them, so every API sees who asked, which agent acted, and no more access than both are allowed. - [AGT-003: Externalised authorisation for agent actions](https://patterns.trevonix.com/patterns/agt-003-externalised-authorisation-for-agent-actions.md): Take the allow-or-deny decision for each agent action out of the agent and its prompt, make it in a policy decision point with full context, and enforce it at a gateway or the resource. - [AGT-004: Human approval gate for consequential agent actions](https://patterns.trevonix.com/patterns/agt-004-human-approval-gate-for-consequential-agent-actions.md): Hold an AI agent's high-impact action until an accountable human approves that exact request, and enforce the hold outside the agent. - [AGT-005: Enforce at the resource, not in the prompt](https://patterns.trevonix.com/patterns/agt-005-enforce-at-the-resource-not-in-the-prompt.md): Assume any agent's instructions can be hijacked, and bound what a hijacked agent can do with identity controls that are enforced outside the model. - [AGT-006: Guardrails for autonomous coding agents](https://patterns.trevonix.com/patterns/agt-006-guardrails-for-autonomous-coding-agents.md): Let coding agents write and test code freely, while identity controls stop them from pushing, merging, deploying or touching production on their own authority. - [AGT-007: Enterprise-managed cross-app access for AI agents](https://patterns.trevonix.com/patterns/agt-007-enterprise-managed-cross-app-access-for-ai-agents.md): Let the enterprise identity provider, not each user's consent click, decide which AI agents may reach which third-party apps on a user's behalf, and keep that decision revocable in one place. - [AGT-012: Discover and inventory every AI agent, including shadow AI](https://patterns.trevonix.com/patterns/agt-012-discover-and-inventory-every-ai-agent-including-shadow-ai.md): Find every AI agent that can act in your environment, whether built, bought or brought in by employees, and keep one living inventory that records who owns it, what it is for, how it authenticates and what it can reach. - [AGT-013: Risk-tier agents and scale controls to the tier](https://patterns.trevonix.com/patterns/agt-013-risk-tier-agents-and-scale-controls-to-the-tier.md): Classify every agent into a small number of risk tiers from what it can reach, how autonomously it acts and who can instruct it, and attach a fixed control baseline to each tier so policies, reviews and approvals follow the tier automatically. - [AGT-014: Short-lived, task-scoped credentials instead of standing secrets](https://patterns.trevonix.com/patterns/agt-014-short-lived-task-scoped-credentials-instead-of-standing-secrets.md): Remove long-lived secrets from AI agents: let each agent prove who it is with a federated identity or a key it never shares, and give it short-lived tokens limited to one audience and the scopes one task needs. - [AGT-015: Secure MCP servers and tool access with OAuth](https://patterns.trevonix.com/patterns/agt-015-secure-mcp-servers-and-tool-access-with-oauth.md): Protect every remote MCP server as an OAuth protected resource: clients discover the authorisation server, get audience-bound tokens with tool-level scopes, the server never passes tokens through, and consequential tool calls are authorised per call. - [AGT-016: Agent kill switch: stop one agent, or all of them, in minutes](https://patterns.trevonix.com/patterns/agt-016-agent-kill-switch-stop-one-agent-or-all-of-them-in-minutes.md): Be able to stop a misbehaving agent, a class of agents or every agent quickly and verifiably, by acting on identity, tokens, enforcement points and runtimes in a planned order, and to restore them safely afterwards. - [AGT-017: Lifecycle and access reviews for AI agents](https://patterns.trevonix.com/patterns/agt-017-lifecycle-and-access-reviews-for-ai-agents.md): Govern each agent from request to retirement like a joiner, mover and leaver: time-bound access granted through requests, reviews by accountable people at a cadence set by risk, automatic handling when sponsors move or leave, and clean retirement when the agent is no longer needed. - [AGT-018: Permission-aware retrieval for RAG and agent search](https://patterns.trevonix.com/patterns/agt-018-permission-aware-retrieval-for-rag-and-agent-search.md): Make sure an agent that retrieves documents to answer a question only ever puts content into the model's context that the person it serves, and the agent itself, are allowed to read, using permissions that stay in step with the source systems. - [AGT-022: Customer confirmation of agent actions on a second device](https://patterns.trevonix.com/patterns/agt-022-customer-confirmation-of-agent-actions-on-a-second-device.md): When a customer-facing agent wants to do something consequential on a customer's account, ask the customer to confirm that exact action on a trusted device they already use, out of band, and let the API act only on a token that carries the confirmed details. - [AGT-023: Bounded mandates: delegate to agents within limits the user sets](https://patterns.trevonix.com/patterns/agt-023-bounded-mandates-delegate-to-agents-within-limits-the-user-sets.md): Let a person give an agent a standing, explicit mandate (what it may do, up to what amount, with whom, until when) that is stored as a grant, enforced on every action outside the agent, visible to the person and revocable at any time. - [AGT-024: Multi-hop delegation across agents](https://patterns.trevonix.com/patterns/agt-024-multi-hop-delegation-across-agents.md): When agents call other agents and tools on a person's behalf, keep the person and every agent in the chain visible to each system, shrink authority at every hop, cap the chain's depth, and never forward a token to an audience it was not issued for. - [AGT-025: Attributable audit trail for agent actions](https://patterns.trevonix.com/patterns/agt-025-attributable-audit-trail-for-agent-actions.md): Record every consequential agent action so that anyone investigating can answer who asked, which agent acted, through which chain, under which policy and approval, with which credential, on what, and with what result, from logs that cannot be quietly altered. - [AGT-026: Context-aware access for agents: runtime, network and risk](https://patterns.trevonix.com/patterns/agt-026-context-aware-access-for-agents-runtime-network-and-risk.md): Grant agents access only from the runtimes and networks they are supposed to run in, and only while their risk is acceptable, by checking those signals when tokens are issued, when requests arrive and, where possible, continuously. - [AGT-032: Token vault: agents call other apps without holding people's tokens](https://patterns.trevonix.com/patterns/agt-032-token-vault-agents-call-other-apps-without-holding-people-s-tokens.md): Let agents call third-party and internal APIs on a person's behalf without ever storing, seeing or passing on that person's long-lived tokens, by keeping refresh tokens in a vault or broker that issues short-lived, narrowly scoped access, or injects it at a gateway. - [AGT-033: Browser and computer-use agents: their own identity, not the person's session](https://patterns.trevonix.com/patterns/agt-033-browser-and-computer-use-agents-their-own-identity-not-the-person-s-session.md): Let agents that operate a browser or a desktop work for people without borrowing the person's signed-in sessions and saved passwords, so every action is attributable to the agent, credentials never reach the model, and sensitive steps still need the person. - [AGT-034: Recognise and verify AI agents that visit your website or API](https://patterns.trevonix.com/patterns/agt-034-recognise-and-verify-ai-agents-that-visit-your-website-or-api.md): Tell trustworthy AI agents from impersonators and malicious bots, and tell who operates an agent from who authorised it, by verifying signed agent requests at the edge, scoring behaviour, and requiring delegated authorisation from the customer for anything beyond public content. - [AGT-035: Agent-to-agent trust across organisations](https://patterns.trevonix.com/patterns/agt-035-agent-to-agent-trust-across-organisations.md): Let agents from partner organisations call your agents and APIs, and yours call theirs, with the same assurance you expect from federated single sign-on: each side knows which organisation and which agent is calling, for whom, with what authority, and can stop it. - [AGT-036: Separation of duties for AI agents](https://patterns.trevonix.com/patterns/agt-036-separation-of-duties-for-ai-agents.md): Stop agents from completing both sides of a sensitive process, approving their own work, or changing the controls that govern them, by applying separation of duties to agents' entitlements, to agents and the people behind them, to each transaction, and to the control plane. - [AGT-042: Agents on people's own machines: coding assistants and other local agents](https://patterns.trevonix.com/patterns/agt-042-agents-on-people-s-own-machines-coding-assistants-and-other-local-agents.md): Give agents that run on laptops and workstations, such as coding assistants and desktop agents, identities and credentials that fit where they run: public-client sign-in with short-lived, device-held tokens, no personal access tokens or cloud keys in files, consent before local servers run, and the same controls on what they reach as any other agent. - [AGT-043: Just-in-time privileged access for agents](https://patterns.trevonix.com/patterns/agt-043-just-in-time-privileged-access-for-agents.md): Give agents that must perform administrative or high-impact work no standing privilege: they request elevation for a specific task, receive it for minutes through a vault or broker with approval where the tier requires, act through a recorded path, and lose it automatically. - [AGT-044: Detecting compromised or misbehaving agents](https://patterns.trevonix.com/patterns/agt-044-detecting-compromised-or-misbehaving-agents.md): Notice quickly when an agent's identity is stolen, its credentials are used from somewhere unexpected, or its behaviour drifts from its purpose, by baselining each agent, collecting identity, gateway and runtime signals in one place, sharing risk between systems, and responding automatically in proportion to risk. - [AGT-045: Let customers connect their own AI assistants to your service](https://patterns.trevonix.com/patterns/agt-045-let-customers-connect-their-own-ai-assistants-to-your-service.md): Let customers use the AI assistants they already have to check orders, manage bookings or move money with your service, through an authorisation flow they understand, with scopes they choose, limits you set, and a place to see and revoke every connected assistant. - [AGT-046: Control who can read what an agent remembers](https://patterns.trevonix.com/patterns/agt-046-control-who-can-read-what-an-agent-remembers.md): Treat an agent's memory as data with an owner and access rules: partition it by person, tenant and agent, check access on every read and write using the caller's identity, keep sensitive data out or labelled, guard against poisoned memories, and honour retention and deletion duties. - [AGT-052: Agents built into the SaaS platforms you already run](https://patterns.trevonix.com/patterns/agt-052-agents-built-into-the-saas-platforms-you-already-run.md): Bring the AI agents that SaaS vendors ship inside their platforms, such as Agentforce, ServiceNow, Copilot Studio and Workday agents, under the same ownership, least-privilege and review controls as your own agents, by knowing how each one acts, whose permissions it uses and where its record lives. - [AGT-053: AI agents that administer your identity platform: guardrails for agents in the IAM team](https://patterns.trevonix.com/patterns/agt-053-ai-agents-that-administer-your-identity-platform-guardrails-for-agents-in-the-iam-team.md): Let identity teams use AI agents and admin MCP servers to report on, tune and change their identity platforms, without handing a language model super-admin rights, by starting read-only, giving the agent its own narrow admin identity, routing every change through review, and protecting the accounts and policies that keep everyone else safe. - [AGT-054: Voice and chat agents that verify customers](https://patterns.trevonix.com/patterns/agt-054-voice-and-chat-agents-that-verify-customers.md): Let AI voice and chat agents in contact centres serve customers who must prove who they are, by making verification a trusted system step rather than a judgement the model makes, preferring confirmation in the customer's own app, limiting every action to the verified customer's records and matching each action to the assurance it needs. - [AGT-055: Agent-initiated payments: what merchants and banks need to verify](https://patterns.trevonix.com/patterns/agt-055-agent-initiated-payments-what-merchants-and-banks-need-to-verify.md): Help merchants, payment providers and card issuers accept payments that AI agents make for customers, by checking four things on every agent payment: that the agent is a known one, that this customer authorised this agent, that the purchase matches what the customer asked for, and whether the customer was present, with stronger checks when any answer is uncertain. - [AGT-056: Show people when they are dealing with an agent: disclosure and verifiable agent identity](https://patterns.trevonix.com/patterns/agt-056-show-people-when-they-are-dealing-with-an-agent-disclosure-and-verifiable-agent-identity.md): Make sure the people and systems your agents deal with can tell that they are dealing with an AI agent, on whose behalf it acts, and that the claim is genuine, by disclosing it in every channel, labelling agent accounts and messages, never letting agents pass as a named person, and signing what agents send so recipients can check it. ## About - [How it works](https://patterns.trevonix.com/how-it-works): what a pattern is, how pages are organised, maturity labels, IDs and machine-readable formats. - [About Identi Patterns](https://patterns.trevonix.com/about): who writes the patterns, contact and the disclaimer. ## Optional - [All public patterns in one file](https://patterns.trevonix.com/llms-full.txt) - [JSON catalogue](https://patterns.trevonix.com/api/patterns.json) - [Atom feed of new and updated patterns](https://patterns.trevonix.com/feed.xml)