Join our Newsletter — 33% off our NHI Course
Home› Guides› Cloud AI Services Mapped: Model Access, Roles and…
Guide Cloud Security

Cloud AI Services Mapped: Model Access, Roles and Keys on Four Clouds

PDF for newsletter subscribers · free to read online

← All guides
By NHI Mgmt Group, under the editorial direction of Lalit Choda Updated 20 November 2026 12 min read
On this page

Each major cloud runs its generative AI platform behind its own identity system, and mapping the roles, policies and credential options side by side shows teams exactly where model access, agent access and API keys need to be governed. This guide maps the managed AI services of Amazon Web Services (AWS), Microsoft Azure, Google Cloud and Oracle Cloud Infrastructure (OCI) from a security and identity angle.

Applications, pipelines and AI agents call managed model endpoints far more often than people do. Every one of those callers is a non-human identity (NHI) that holds some form of credential and some set of permissions. When an organisation uses more than one cloud, the same question (who or what can invoke a model, deploy one, or change an agent) has to be answered in four different policy languages. This page translates between them.

Providers appear in alphabetical order (AWS, Azure, Google Cloud, OCI) throughout. Each gets the same structure and similar depth. Nothing here ranks or recommends one provider. Product names are given as each provider's documentation used them in November 2026: Amazon Bedrock, Microsoft Foundry (previously Azure AI Foundry), Gemini Enterprise Agent Platform (documented under the Vertex AI URL path, with role IDs that still use the aiplatform prefix) and OCI Generative AI. Features and names change, so confirm against current vendor documentation.

Key takeaways

  • All four platforms control model and agent access through the provider's own identity and access management, not through a separate AI permission system.
  • Where API keys exist, they need their own governance. Microsoft documents that key-based authentication to Foundry grants full access without role restrictions.
  • Predefined roles are a starting point, not a least-privilege design. Google Cloud and OCI documentation both point towards narrower grants for everyday use.
  • Scope matters: account, resource, project, compartment, endpoint and agent scopes each change what a grant reaches.
  • Some permissions carry more reach than their names suggest, such as deploy rights that Google Cloud warns may allow model export.
  • Include AI services in existing audit logging standards; the Bedrock documentation, for example, recommends API and user activity logging with AWS CloudTrail.

Mapping table: identity controls for managed AI services

Each row uses the provider's own terms and links to the documentation page used for this guide. Rows are alphabetical by provider.

ProviderService name in cited docsAccess modelExample built-in grantSecurity and identity angleSource
AWSAmazon BedrockIAM identity-based policies and resource-based policiesNone by default: users and roles start with no permissionsUse IAM roles for applications and cross-service access; log API activity with CloudTrailAmazon Bedrock IAM documentation
AzureMicrosoft FoundryAzure RBAC with Microsoft Entra ID; key-based authentication also availableFoundry User; Foundry Agent ConsumerKeys bypass role restrictions; managed identity for projectsMicrosoft Foundry RBAC documentation
Google CloudGemini Enterprise Agent PlatformIAM at project or resource level; predefined and custom rolesAgent Platform User (roles/aiplatform.user)Custom roles for single permissions such as endpoint predictAgent Platform access control documentation
OCIOCI Generative AIOCI IAM policy statements by resource type and compartmentgenerative-ai-family aggregate resource typeFull family access reserved for administrators or sandboxes; API keys are a resource typeOCI Generative AI IAM documentation

Why AI service access is an NHI problem

The caller of a model endpoint is usually code: a web application, a retrieval pipeline, an evaluation job, or an agent acting on behalf of a user. That code needs a credential, and the credential carries permissions. If the permissions are broad, a compromised workload or a manipulated agent can do more than invoke a model. It might deploy new models, read training data, change guardrail settings or invoke other agents.

Three identity questions recur on every platform. First, how does the workload prove who it is: a cloud-issued identity or a static key? Second, what scope does the grant cover: the whole account, one project, one endpoint, one agent? Third, what evidence remains afterwards? The sections below answer those questions for each provider using its own documentation.

AWS: Amazon Bedrock

Identity model

The Amazon Bedrock documentation describes identity-based policies and resource-based policies. Identity-based policies are JSON documents attached to a user, group or role, controlling what actions the identity can perform, on which resources and under what conditions. They can be inline or managed. Resource-based policies are attached to a resource and must specify a principal. The documentation states that by default users and roles have no permissions.

Workload credentials

The documentation describes IAM roles as useful for federated access, temporary permissions, cross-account access, cross-service access and applications running on Amazon EC2. For people, the Bedrock data protection page recommends individual users through AWS IAM Identity Center or IAM, with multi-factor authentication on each account.

Data and logging notes

The data protection page states that model providers do not have access to the Model Deployment Accounts operated by the Bedrock service team, and so do not have access to Bedrock logs or to customer prompts and completions. It requires TLS 1.2 and recommends TLS 1.3, points to FIPS endpoints for FIPS 140-3 validated modules, and recommends API and user activity logging with AWS CloudTrail. It also advises against placing confidential data in tags or free-form name fields, which may be used in billing or diagnostic logs.

Identity angle

Because nothing is allowed by default, the risk sits in the policies you write. Review Bedrock actions in workload roles the same way you review data access, and include resource-based policies in the review.

Azure: Microsoft Foundry

Identity model

The Microsoft Foundry RBAC documentation describes scopes at the Foundry resource (the administrative, security and monitoring boundary), the Foundry project (a sub-scope for access control over APIs, tools and developer workflows) and the agent, where assignments are currently evaluated only for agent endpoint access. Built-in roles include Foundry Agent Consumer, described as the least-privilege role for principals that only need to interact with agents, and Foundry User, the least-privilege role for developers building and testing agents. Foundry Project Manager, Foundry Account Owner and Foundry Owner carry broader rights. Several roles were renamed from earlier Azure AI names with unchanged role IDs.

Workload credentials

The documentation states that RBAC roles apply when authenticating with Microsoft Entra ID, and that with key-based authentication the key grants full access without role restrictions. Microsoft recommends Entra ID authentication. The recommended minimum setup assigns Foundry User on the Foundry resource to both the user principal and the project's managed identity.

Scope and permission notes

The documentation advises against Cognitive Services built-in roles for Foundry work, except Cognitive Services Usages Reader, and against Azure AI Developer, which is scoped to Azure Machine Learning workspaces and hubs. It notes that principals with the agents write data action can invoke model deployments through the project Responses endpoint, including requests that do not reference an agent. Quota visibility requires a subscription-scoped assignment.

Identity angle

The key path and the role path coexist, so a least-privilege role design means little if keys remain in use. Track key use as a separate control and prefer managed identity for workloads.

Google Cloud: Gemini Enterprise Agent Platform

Identity model

The Agent Platform access control documentation describes access set at project level, applying to all resources in the project, or at resource level for a single resource. Predefined roles include Agent Platform Administrator (roles/aiplatform.admin), Agent Platform User (roles/aiplatform.user) and Agent Platform Viewer (roles/aiplatform.viewer). Agent-specific roles in Beta include Agents Admin, Agents Creator, Agents User and Agents Viewer.

Workload credentials

The documentation gives an example of a custom role containing aiplatform.endpoints.predict assigned to a service account on an endpoint, allowing predictions without control of the endpoint. It states that predefined roles often contain more permissions than you need and recommends custom roles for least privilege.

Scope and permission notes

The documentation warns that granting aiplatform.endpoints.deploy might allow a user to export other deployed or deployable models from the project, and suggests separate projects where access to specific models must be isolated. Endpoint IAM policy permissions such as aiplatform.endpoints.setIamPolicy appear in the role lists.

Identity angle

Project boundaries do real security work here. Place sensitive models in their own projects and give inference workloads a predict-only custom role on the endpoint they need.

OCI: OCI Generative AI

Identity model

The OCI Generative AI IAM documentation describes an aggregate resource type, generative-ai-family, covering all Generative AI resource types. Individual types include generative-ai-chat, generative-ai-model, generative-ai-dedicated-ai-cluster, generative-ai-endpoint, generative-ai-private-endpoint, generative-ai-apikey, generative-ai-project and generative-ai-vector-store, among others.

Workload credentials

Policies are written per group and per compartment or tenancy, for example allow group <group> to manage generative-ai-family in compartment <compartment>. Because API keys appear as their own resource type, the ability to create or manage them can be granted or withheld through policy like any other resource.

Scope and permission notes

The documentation recommends giving permission to all Generative AI resources only to administrators or groups working in sandbox environments, and otherwise granting the least privileges required. It links to API-level permission pages for models, endpoints, private endpoints and dedicated AI clusters, and to guidance on limiting model inference access with IAM policies.

Identity angle

Compartments play the role that projects play elsewhere. Write policies against individual resource types for production, and reserve the family-wide grant for sandboxes.

Translating one access standard across four platforms

A single internal standard helps platform teams implement the same intent in each provider's terms. The pattern below is an NHI Mgmt Group recommendation, not a vendor requirement:

  1. Separate invoke from manage. Inference workloads get only the permission to call the model or agent they need. Deploy, tune and configure rights go to a small set of pipeline identities.
  2. Prefer cloud-issued identity over keys. Use IAM roles, managed identities, service accounts or OCI principals for workloads. Where keys exist, inventory them, restrict who can create them and set an expiry policy.
  3. Use the narrowest scope the platform offers. Endpoint, agent, project and compartment scopes exist to be used.
  4. Isolate sensitive models. Put regulated or high-value models in their own project, compartment or account so that broad grants elsewhere cannot reach them.
  5. Treat agent identities as first-class. An agent that calls tools needs its own identity, its own grants and its own log trail, not the identity of the developer who built it.

Monitoring and evidence

For audit and incident response, collect three kinds of evidence on every platform: who changed access (role assignments, policies, keys), who changed the AI resource (deployments, endpoints, agents, guardrails) and who invoked it. Route these into the same logging pipeline used for other cloud services, as described in the logging and audit map linked below.

Illustrative detections, not tied to any provider's field names, include new keys created for an AI resource, broad roles assigned at account or project scope, deploy rights granted to an inference identity, and invocation from an identity that has never called the service before. Prompt injection and tool misuse are covered by frameworks such as the MITRE ATLAS LLM Prompt Injection technique, and identity limits are a key part of containing them.

Review these signals together with the access inventory. A new key or broad grant is far easier to judge when you already know which workloads and agents are meant to use each AI service and which team owns them.

Common failure patterns

  • Keys left on after roles are designed. A careful role model is undone by an API key with full access in a configuration file.
  • Administrator roles for developers. Broad predefined roles are given to save time and never narrowed.
  • Inference identities with deploy rights. A workload that only needs to call a model can also deploy, export or replace one.
  • Shared projects for sensitive models. Models with different sensitivity share one project or compartment, so one grant reaches all of them.
  • Agents running as people. Agents use a developer's credentials, so actions cannot be attributed and access is far broader than needed.
  • AI services left out of logging standards. Audit logging is configured for core services but not for the newer AI platform.

Practitioner checklist

  • Inventory every identity, human and non-human, with any permission on each provider's AI service.
  • Separate invoke permissions from deploy, tune and configuration permissions.
  • Replace keys with cloud-issued workload identities wherever the platform supports it.
  • Restrict who can create AI service keys and review existing keys quarterly.
  • Replace broad predefined roles with narrower or custom roles for production workloads.
  • Place sensitive models in isolated projects, compartments or accounts.
  • Give each agent its own identity and scope its grants to the tools and models it uses.
  • Confirm that audit logs for each AI service reach your central logging platform.
  • Re-check role names and scopes after provider renames or platform updates.

Standards and references

Related NHI Mgmt Group resources: Cloud Service Equivalents · Cloud Identity Services Mapped · AI Infrastructure Workload Identity Guide · Cloud Logging and Audit Services Mapped

PDF for subscribers

Take this guide with you

Every section, table and checklist in one PDF, with links to the sources and related guides. Subscribe to our weekly NHI & AI Identity Journal and we’ll email you a download link.

Free weekly newsletter

Subscribe to the NHI & AI Identity Journal

The latest on NHI and Agentic AI security – articles, research, breaches, news and events every week.

Bonus 33% off our NHI Course when you subscribe.

PDF Downloads for Newsletter Subscribers

Get the guide

Enter your details and we’ll email you a download link.

The full guide is free to read online. The PDF is a thank you for subscribing.

Fill in all fields marked * and tick both boxes to continue.