When the fastest integration creates the broadest risk
A company wants an AI agent to consult the CRM, read contract documents, prepare customer emails and register an update in the ERP. To accelerate the pilot, the team reuses an administrator account or creates one service credential with access to every record. The agent works, but the business can no longer answer a basic question: what information and actions does it actually need for each task?
A broad account turns an integration shortcut into an operational risk. An instruction error, compromised token or malicious content may reach more data and actions than the use case requires. Design access with a specific identity, limited permissions, visible approvals and tested revocation.
Give the agent an identity that can be managed
Create a dedicated service identity whenever the system supports it. It should indicate agent, environment and purpose, allowing policies, activity review and revocation without interrupting unrelated users.
Production identities should remain separate from tests and from agents that perform different jobs, so activity and permissions can be attributed clearly.
Translate least privilege into business rules
Least privilege is not merely a list of technical scopes. Start with the business task and map the resource, operation and condition for each step. An agent may read active contracts for customers in a specific portfolio, create a draft message and add a note to the CRM. That does not imply permission to export the customer base, delete records or change commercial limits.
NIST SP 800-207 states that access to individual resources should be granted per session with the least privileges needed to complete the task. It also separates authorization for one resource from access to another. For managers, this means that connecting the CRM should not silently authorize the document repository or ERP. Each connection needs its own purpose, owner and boundary.
Document who approves the permission, how long it remains valid and what evidence supports renewal. Deny access by default when the task, resource or environment is outside the defined case.
Prefer scoped and replaceable tokens
Do not embed usernames, passwords or long lived tokens in prompts, files or source code. Use the organization's secret management mechanism and deliver credentials to the runtime only when needed. Prefer short validity, specific audiences and scopes that represent the permitted operations. The agent should receive the capability to call a tool, not unrestricted visibility of the underlying secret.
OAuth Security Best Current Practice, RFC 9700, recommends restricting token privileges to the minimum required and limiting tokens to a specific resource server or a small set of servers. It also describes sender constrained tokens and refresh token rotation as protections against replay. Not every legacy system supports these mechanisms, but the principle remains useful: reduce the lifetime, reach and reuse value of a leaked credential.
Separate reading, proposing and executing
An agent does not need write access simply because the final process changes a system. Divide the workflow into reading, proposing and executing. The agent can collect context and prepare a structured action. A deterministic service validates required fields and business limits. A person or policy engine approves sensitive cases before a narrowly scoped integration performs the change.
OpenAI's security guidance notes that agents exposed to external content should have capability limits so that manipulation has constrained impact. It also recommends limiting access to the sensitive data or credentials needed for the task and confirming consequential actions. These controls complement model safeguards because they still limit the outcome if an unsafe instruction reaches the agent.
A hypothetical example: contract renewal
Consider a hypothetical B2B software company, not an NM Solutions customer case. An agent supports contract renewals by reading CRM opportunities, consulting the current agreement, preparing a summary and drafting a message for the account manager. The initial design would give it broad CRM, document and email permissions.
The company instead creates a dedicated identity. The agent can read only renewal opportunities assigned to a defined team and retrieve documents linked to those records. It cannot search the complete repository. It creates a draft in an internal queue, but cannot send email. A service validates recipient, contract identifier and approved template. The account manager confirms the message, and only then does a separate action update the CRM stage.
If a document contains instructions asking the agent to disclose another customer's data or use a different destination, the available tools cannot perform those actions. Logs connect each read, proposal, approval and update to the case identifier. The scenario does not eliminate every risk, but it limits reach and supports investigation.
Make revocation and review part of operations
Maintain an inventory of agent identities, connected systems, scopes, owners and expiration dates. Alert on unusual volume, access outside expected hours, repeated denials and changes in the destination of actions. Review successful operations as well as failures, because excessive access may remain unnoticed when the result appears correct.
Test how to disable the identity and revoke tokens without depending on the person who built the pilot. Review permissions after relevant changes and remove credentials from inactive integrations.
Recognize technical and organizational limits
Legacy applications may offer only broad profiles, APIs may combine unrelated permissions and some logs may not identify the original actor. More granular controls can add latency and administrative work. Human approvals can also become automatic habits if reviewers lack context or receive too many requests. These constraints should be documented and reflected in the autonomy level of the agent.
NM Solutions helps companies map identities, permissions, secrets, approvals and recovery around the business process. A diagnostic conversation can identify which connections need narrower access before the next stage of automation.
