AI Governance · Identity & Access

AI access control that keeps every agent inside its permissions

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.

AI Access Architecture
WHO IS ASKING People & AI Assistants Users · Copilots · Chat apps AI Agents & Services Agents · Integrations · APIs SSO + MFA OAuth Scopes Service Accounts TWOPIR ACCESS LAYER Authenticate Identity · SSO · MFA Tokens · Keys Authorize RBAC · ABAC Least privilege Approve Tool limits · Read/Write Human approval INHERITED OR ASSIGNED · NEVER A SHARED ADMIN ACCOUNT 2πr WHAT AI CAN REACH Scoped Access Only the records its identity allows Approved Writes Sensitive changes signed off by a person Full Audit Trail Every action tied to a named identity CRM · ERP · DATABASES · INTEGRATION PLATFORMS
500+
Clients Served Across Global Markets
12+
Years of Salesforce & HubSpot delivery
10+
Countries Served
15+
Certified Platform Partnerships

Trusted by 500+ organizations: growing and mid-market companies, and enterprise teams, running CRM, ERP and AI on connected systems with Twopir Consulting.

Hey Market
Platform9
Mitratech
Spinify
Fix Stream
Ultra Consultant
Kacific
Sotheby's International Realty (UAE)

Platforms We Secure

  • Salesforce Partner
  • HubSpot Partner
  • AI Delivery
  • Agentforce
  • OpenAI
  • Anthropic Claude
  • Microsoft Azure AI
  • AWS
Where AI Access Goes Wrong

Most AI security gaps are permission gaps

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.

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.

One shared integration credential

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.

OAuth scopes granted wide “for now”

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.

Write actions with no approval step

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.

AI identities nobody offboards

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.

No record of what the AI did

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.

Definition

AI access control, defined

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.

Access Models

RBAC, ABAC and agent identities, compared

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.

How each model decides what an AI system may do, where it fits, and what to watch for.
ModelHow it decides accessFits AI use cases whenWatch 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) accessThe 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 identityThe 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.
What We Implement

Six workstreams behind every AI identity

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.

Identity & Access Management

One identity source for people and AI, so every assistant, agent and integration is a known, owned identity rather than a stray credential.

  • Inventory of AI identities and credentials
  • Agent users and service accounts with named owners
  • Identity provider as the source of truth
  • Naming and tagging that shows what is AI
  • Separation of human and non-human identities

SSO, MFA & Authentication Policies

People reach AI tools through single sign-on with multi-factor authentication, and sessions follow the same policies as the rest of your estate.

  • SSO for AI apps and admin consoles
  • MFA enforced for every human login
  • Conditional access by device, network and risk
  • Session and token lifetime policies
  • Admin console access limited by role

RBAC, ABAC & Least Privilege

Roles and attribute rules that give each AI use case the minimum access it needs, with permission boundaries it cannot exceed.

  • Role design for AI use cases
  • Attribute rules for region, owner and data class
  • Permission boundaries and deny rules
  • Field and record restrictions on sensitive data
  • Inherit-or-assign decision per agent

OAuth, API Authentication & Service Accounts

Machine-to-machine access with the narrowest scopes that work, credentials you can rotate, and no secrets in prompts or code.

  • OAuth scope design per connected app
  • Client credentials and token flows chosen per case
  • API keys scoped by project or workspace
  • Secret storage and rotation
  • One credential per integration, never shared

Agent Tool Permissions & Human Approval

Each agent gets an explicit list of tools and actions, read and write separated, with a person approving anything consequential.

  • Tool and action allow-lists per agent
  • Read-only by default, write by exception
  • Approval steps for sensitive writes
  • Limits on volume, value and recipients
  • Kill switch to suspend an agent fast

Access Reviews, Provisioning & Deprovisioning

Access that is granted through a process, reviewed on a schedule and removed when the person, project or pilot ends.

  • Joiner, mover and leaver steps that include AI
  • Scheduled reviews of AI identities and scopes
  • Retirement of keys and accounts from ended pilots
  • Audit logs tied to identity and action
  • Evidence packs for auditors
Platform Controls

Where AI permissions actually live

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.

PlatformNative access controlsWhat we configure for AI
SalesforceOrganization-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.
HubSpotUser 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 AISingle 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.
AWSIAM 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 platformProjects 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 & MCPWorkspaces 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

What an agent may do, and who signs off

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 classDefault control
Read and summarizeAllowed within the identity's record and field access. Restricted fields stay hidden from the agent as they would from the user.
Draft and suggestAllowed. The agent prepares the email, update or reply; a person reviews it and sends it.
Update internal recordsAllowed on named objects and fields only, logged against the agent's identity, with limits on how many records one run may change.
Customer-facing actionsHuman approval before anything leaves the organization: emails, quotes, case closures, messages.
Financial or irreversible actionsHuman approval every time, or not available to the agent at all: refunds, price changes, deletions, permission changes.
Bulk export and data movementNot available by default. Enabled only for a documented use case, with volume limits and an owner.
Delivery Process

Six phases from inventory to governed access

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.

Phase 01

Access Discovery

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

Phase 02

Risk & Use-Case Mapping

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

Phase 03

Access Architecture

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

Phase 04

Build & Configure

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

Phase 05

Permission Testing

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

Phase 06

Govern & Hand Over

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 Security Architecture

Access designed across CRM, ERP and data

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.

AI assistants + Salesforce and HubSpot

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.

CRM agents + your ERP

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.

AI apps + databases and warehouses

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.

Agents + integration platforms

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.

Your apps + OpenAI, Claude, Azure AI or Bedrock

Prompts and grounding data leave for the model provider through project- or workspace-scoped keys or managed identities, with limits per environment.

Agents + MCP servers and tools

Agents call tools through MCP servers that check every token was issued for them. User tokens are never passed through to downstream systems.

Identity provider + every AI tool

SSO, MFA and group membership flow from the identity provider into each AI tool, so access is granted, changed and removed in one place.

AI actions + your audit and monitoring

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.

Standards & Frameworks

Access controls that map to the frameworks you report on

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.

NIST AI Risk Management Framework

What it is
NIST's voluntary framework for managing AI risk, released in January 2023, with a Generative AI Profile added in July 2024
Where access fits
Governing who and what may act, and mapping and managing the risk of each AI use case
What we produce
The use-case access matrix and the access review plan

ISO/IEC 42001 AI management system

What it is
The international standard for establishing and running an AI management system
Where access fits
The operational controls an organization applies to the AI systems it runs
What we produce
Documented access design, approvals and review evidence

OWASP GenAI Security Project

What it is
Open community guidance on securing LLM and generative AI applications
Where access fits
Limiting what an AI application or agent is permitted to do with the tools and data it can reach
What we produce
Tool allow-lists, read/write limits and approval steps per agent

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.

Why Twopir

An access partner who knows the systems behind the AI

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.

The architecture comes first

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.

Salesforce-first, with HubSpot and connected platforms

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.

Built for multi-system complexity

ERP, databases, integration platforms, automation and AI agents: we design access across the connections where it usually widens, not one system at a time.

Real implementation experience

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.

Senior-led delivery

Architects who design access models do the work, and hand over documentation and runbooks your admins can keep running without us.

Common Questions

AI access control questions, answered plainly

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.

Next Step

Show us your AI tools, we will map their reach

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