The agent runs as an administrator
Connecting an assistant through an admin user is the quickest way to make a demo work. It also lets the AI read, change and export everything that user can, including records the person asking should never see.
AI access control decides which data and actions an AI assistant, generative AI app or autonomous agent may use, under whose identity, and with what approval. Twopir Consulting designs and implements it across Salesforce, HubSpot, your ERP, databases and integration platforms, so AI works through scoped identities, least-privilege permissions and human approval instead of a shared admin account. Every AI action authorized, attributable and reviewable.
Trusted by 500+ organizations: growing and mid-market companies, and enterprise teams, running CRM, ERP and AI on connected systems with Twopir Consulting.
Platforms We Secure
A pilot gets connected to the CRM with whatever credential works, and the shortcut becomes production. The model is rarely the weak point: the identity it runs as and what that identity can reach usually are. These are the six patterns we find most often when we review an AI rollout.
Connecting an assistant through an admin user is the quickest way to make a demo work. It also lets the AI read, change and export everything that user can, including records the person asking should never see.
Several AI tools and automations share a single API key or integration user. Nobody can say which system made a change, and rotating the key breaks all of them at once, so it never gets rotated.
Connected apps and private apps are approved with full access because the right scopes were not worked out. The AI only needed to read contacts; it can now write deals, delete records and call every API.
An agent that can update prices, send emails or close cases on its own is one bad instruction away from a customer-facing mistake. The tool permission exists; the human checkpoint was never designed.
People leave and their accounts are disabled, but the API keys, service accounts and agent users created for AI pilots stay live. Orphaned credentials with broad access are exactly what access reviews exist to catch.
When an agent acts under a generic account, the audit trail shows the account and not the agent, the prompt or the person who asked. Investigating an incident, or proving control to an auditor, becomes guesswork.
AI access control is the set of identity, authentication and authorization rules that decide what an AI assistant, generative AI application or AI agent can see and do in your systems. It answers four questions for every AI request: who or what is acting, on whose behalf, with which permissions, and which actions need a person to approve them. Done well, an AI system never holds more access than the person or process it serves, and every action it takes can be traced to an identity.
There are two sound ways to give an AI system permissions. It can inherit the user's permissions, acting on behalf of the signed-in person so it sees only what they could see. Or it can be assigned its own identity: a dedicated agent user or service account with a narrow, documented set of permissions for the job it does. What it should never do is run on an unrestricted administrator account or a shared integration credential that no one owns.
Three parties are involved, and it helps to keep them apart. Your platforms (Salesforce, HubSpot, Microsoft Entra ID, AWS IAM and the AI providers' admin consoles) supply the access controls: profiles and permission sets, OAuth scopes, roles, policies and keys. The AI vendors (OpenAI, Anthropic, Microsoft, AWS and Salesforce for Agentforce) supply the models and agent frameworks. Twopir Consulting designs how those controls fit together for your AI use cases, configures them, tests them and hands over a model your team can review and maintain.
AI access control is one part of a wider governance programme. Data classification, model risk, monitoring and policy are covered on our AI governance and security page; this page goes deep on identity and permissions. Planning the AI itself? See AI in Salesforce and our Agentforce implementation services, and for the sign-in layer underneath, our guide to single sign-on.
Role-based access control for AI is the usual starting point, but it is rarely the whole answer. Most AI access architectures we design combine two or three of these models, chosen per use case and recorded in the design so the reasoning outlives the project.
| Model | How it decides access | Fits AI use cases when | Watch for |
|---|---|---|---|
| Role-based access control (RBAC) | Permissions are grouped into roles, and identities, including AI agents, are granted roles. | Job functions are stable: a service agent that reads cases and drafts replies, a sales assistant that reads pipeline. | Role sprawl, and AI roles copied from a human role that holds far more than the agent needs. |
| Attribute-based access control (ABAC) | Policies evaluate attributes of the identity, the record and the context: region, data classification, record owner, time or device. | Access depends on the data, not the job: only records in the user's region, never fields classed as restricted. | Attributes that are missing or wrong on the records; a policy is only as good as the data it reads. |
| Delegated (on-behalf-of) access | The AI acts with the signed-in user's own identity and token, so it inherits that person's permissions. | Assistants and copilots that answer one person's questions inside the apps they already use. | Users who are over-permissioned already; the AI makes existing access problems faster to exploit. |
| Dedicated agent identity | The agent gets its own user or service account with a narrow permission set, separate from any person. | Autonomous or scheduled agents and integrations that act without a person present. | The identity quietly gaining permissions over time; it needs an owner and a regular access review. |
AI identity and access management is not one setting. These are the six workstreams we design and configure, each built in a sandbox or test tenant and proven before it reaches production.
One identity source for people and AI, so every assistant, agent and integration is a known, owned identity rather than a stray credential.
People reach AI tools through single sign-on with multi-factor authentication, and sessions follow the same policies as the rest of your estate.
Roles and attribute rules that give each AI use case the minimum access it needs, with permission boundaries it cannot exceed.
Machine-to-machine access with the narrowest scopes that work, credentials you can rotate, and no secrets in prompts or code.
Each agent gets an explicit list of tools and actions, read and write separated, with a person approving anything consequential.
Access that is granted through a process, reviewed on a schedule and removed when the person, project or pilot ends.
Every platform enforces access its own way. An AI security architecture has to be configured in each of them, in that platform's own controls, and line up with the others. This is where the controls sit, and what we set in each for AI.
| Platform | Native access controls | What we configure for AI |
|---|---|---|
| Salesforce | Organization-wide defaults, profiles, permission sets and permission set groups, the role hierarchy and sharing rules, field-level security, connected apps with OAuth scopes, Integration user licences and mandatory MFA for internal users. | Restrictive defaults first, then permission sets that open only what each AI use case needs. Agentforce Service agent users widened from their minimal default only as far as their actions require. One integration user and one connected app per integration, with no full-access scope where narrower scopes work. |
| HubSpot | User permissions per tool and object (view, create, edit, delete, scoped to all, team's or own records), super admin control of apps, and apps that request only the scopes they need with a token unique to each app. | One app per integration with minimum scopes, token storage and a rotation schedule, and user permissions for the teams using AI features. Legacy private apps can no longer be created since 26 October 2026, so new builds use HubSpot's current developer platform. |
| Microsoft Entra ID & Azure AI | Single sign-on, Conditional Access policies (which can now target agents, in preview), managed identities, and Azure role-based access control with roles such as Cognitive Services OpenAI User. | Managed identities instead of stored keys, inference-only roles for applications that only call models, and Conditional Access policies for the people and agents reaching AI tools. |
| AWS | IAM roles and policies with temporary credentials, IAM Access Analyzer, and Amazon Bedrock, where users and roles start with no permissions until a policy grants them. | A role per AI workload with specific actions on specific resources, policies generated and validated with IAM Access Analyzer, and regular removal of unused roles and keys. |
| OpenAI API platform | Projects with their own members, limits and service accounts; organization and project roles; API keys that can be restricted to none, read or write per endpoint. | A project per use case or environment, a service account per system, and restricted keys, because a service account key can read and write everything in its project by default. |
| Anthropic Claude & MCP | Workspaces with their own members, API keys and spend and rate limits; workspace roles from Limited Developer to Admin; OAuth 2.1 authorization for remote MCP servers. | Workspace-scoped keys per environment, the narrowest workspace role per person, and MCP servers that accept only tokens issued for them and never pass a user's token on. |
Platform-specific depth lives on its own pages: Agentforce governance and security for agent users and the Trust Layer, profiles and permission sets and restriction rules for Salesforce record access, and AI in HubSpot for HubSpot's AI features. Salesforce documents its layered model in the Salesforce security hierarchy guide. Vendor controls change often; we confirm each one against current documentation during design.
AI agent permissions are about actions as much as data. We sort every tool an agent can call into an action class, and each class gets a default control. The business owner decides where the approval line sits; we build it so the agent cannot step over it.
| Action class | Default control |
|---|---|
| Read and summarize | Allowed within the identity's record and field access. Restricted fields stay hidden from the agent as they would from the user. |
| Draft and suggest | Allowed. The agent prepares the email, update or reply; a person reviews it and sends it. |
| Update internal records | Allowed on named objects and fields only, logged against the agent's identity, with limits on how many records one run may change. |
| Customer-facing actions | Human approval before anything leaves the organization: emails, quotes, case closures, messages. |
| Financial or irreversible actions | Human approval every time, or not available to the agent at all: refunds, price changes, deletions, permission changes. |
| Bulk export and data movement | Not available by default. Enabled only for a documented use case, with volume limits and an owner. |
The length of the work depends on how many AI tools are already connected and how many platforms they touch. A single Agentforce or HubSpot AI rollout is a focused project; an estate of assistants, agents and integrations across CRM, ERP and data platforms is phased. We scope it in discovery, before you commit.
We find every AI tool, agent, integration and credential that touches your systems, what each can reach today, and who owns it. Shadow AI connections usually surface here.
DeliverableAI identity and credential inventory
Each AI use case is mapped to the data it needs, the actions it takes and the harm a misuse could do. That sets the access model and the approval line for each.
DeliverableUse-case access matrix
The target design: identity sources, inherit-or-assign per agent, roles and attribute rules, OAuth scopes, tool permissions and approval workflows, across every platform involved.
DeliverableSigned-off AI access architecture
SSO and MFA, agent users and service accounts, permission sets, scopes, policies and approval steps, configured in sandboxes and test tenants, never first in production.
DeliverableConfigured test environments, demoed per platform
We test what the AI must not do as hard as what it must: forbidden records, restricted fields, blocked tools, skipped approvals and revoked credentials, under each identity.
DeliverablePassed allow-and-deny test matrix
Access reviews scheduled, provisioning and deprovisioning steps documented, logs routed to whoever monitors them, and an access model your admins can maintain.
DeliverableAccess review plan and admin runbook
AI rarely stays inside one system. An assistant in the CRM reads ERP orders; an agent in an integration platform writes to both. Each connection is a place where access can widen, so we design them as one architecture.
The assistant reads and drafts on CRM records under the user's own access, so sales and service teams get answers without seeing records their role would hide.
Order, invoice and inventory data flows from the ERP into the CRM for the agent to read. Writes back to the ERP go through a dedicated integration identity and an approval step.
Generative AI applications query curated views through read-only roles, never the base tables, so restricted columns and other customers' rows stay out of prompts.
Integration platforms run agent actions across systems. Each flow gets its own credential and scopes, so one connection cannot become a master key to every system.
Prompts and grounding data leave for the model provider through project- or workspace-scoped keys or managed identities, with limits per environment.
Agents call tools through MCP servers that check every token was issued for them. User tokens are never passed through to downstream systems.
SSO, MFA and group membership flow from the identity provider into each AI tool, so access is granted, changed and removed in one place.
Each AI action is logged with the identity, the request and the approver, and sent to the logs your security or operations team already watches.
Enterprise AI security reviews increasingly ask how AI access is governed against a recognized framework. We design access controls so the evidence for these three is a by-product of the build, not a separate project.
Twopir Consulting implements access controls that support these frameworks; we do not certify organizations against them. Certification under ISO/IEC 42001 is carried out by an accredited certification body.
AI access control fails at the seams: between the identity provider and the CRM, the CRM and the ERP, the agent framework and the integration platform. It takes people who have built those systems to close them.
We design the access model before anyone connects an AI tool: identities, roles, scopes and approvals decided on purpose and written down, so security does not depend on whoever set up the pilot.
Profiles, permission sets, sharing and field-level security are daily work for us, and so are HubSpot scopes and the identity, cloud and AI platforms around them.
ERP, databases, integration platforms, automation and AI agents: we design access across the connections where it usually widens, not one system at a time.
We have implemented CRM and revenue systems for 500+ clients across industries and markets, so access rules are designed around how your teams actually work.
Architects who design access models do the work, and hand over documentation and runbooks your admins can keep running without us.
AI access control is the set of identity, authentication and authorization rules that decide what an AI assistant, generative AI application or AI agent can see and do in your systems. It determines who or what is acting, on whose behalf, with which permissions, and which actions need human approval, so an AI system never holds more access than the person or process it serves.
It depends on the job. Assistants that answer one person's questions should usually act on behalf of the signed-in user and inherit that person's permissions. Agents that run on their own, on a schedule or for customers, should have a dedicated agent identity with a narrow permission set and a named owner. Neither should run on an administrator account or a shared integration credential.
Role-based access control (RBAC) grants permissions through roles, so an AI agent gets what its role allows. Attribute-based access control (ABAC) evaluates attributes of the identity, the data and the context, such as region, data classification or record owner, on each request. Most AI access architectures use roles as the base and attribute rules for sensitive data.
Through Salesforce's own layered security model: organization-wide defaults set at the most restrictive level, then profiles, permission sets and permission set groups that open only the access a job needs, sharing rules for records and field-level security for sensitive fields. Agentforce Service agents that serve customers who are not logged in run as a dedicated agent user, so its permissions and sharing decide what the agent can reach. Integrations get one integration user each, and connected apps get only the OAuth scopes they need.
By giving each integration its own app with only the scopes it needs, such as reading contacts without editing deals, so it receives an access token unique to that app. HubSpot recommends rotating private app tokens every six months, and apps that are no longer used are removed. For people using AI features, HubSpot user permissions limit records to all, their team's or their own.
Anything that leaves the organization or cannot easily be undone: customer emails and messages, quotes and price changes, refunds, deletions, case closures and permission changes. Reading, summarizing and drafting usually do not. We set the approval line with the business owner for each agent and build it so the agent cannot bypass it.
On the same schedule as your other privileged access, and at every change: when a person leaves, a project ends or an agent gains a new tool. Reviews cover AI identities, OAuth scopes, API keys and service accounts as well as human users, and credentials from finished pilots are retired rather than left active.
A first conversation covers the AI assistants, agents and integrations you run or plan, the systems they connect to and the credentials they use: enough to say where access is wider than it should be, and what closing it would take. No obligation to proceed.
Talk to an architect who designs AI access across CRM, ERP and data