Enterprise-managed authorization for AI agents
With enterprise-managed authorization (EMA), your organization's identity provider (IdP) decides which AI agents your employees can use to access AWS. Employees sign in to their agent once through the IdP. The agent can then connect to AWS MCP Server, and to other Model Context Protocol (MCP) servers that use AWS Sign-In, without a separate AWS sign-in or consent page for each server.
AWS Sign-In implements EMA with the Identity Assertion JSON Web Token (JWT) Authorization Grant (ID-JAG). Employees don't need their own AWS credentials, and you manage agent access centrally with your existing IdP policies.
How enterprise-managed authorization works
The employee signs in to the agent through your IdP.
The agent asks the IdP for an ID-JAG for AWS Sign-In. The IdP checks that the employee is assigned access, and issues a short-lived, signed ID-JAG.
The agent exchanges the ID-JAG at AWS Sign-In for an access token that's valid for up to one hour. AWS Security Token Service (AWS STS) validates the ID-JAG against an IAM OpenID Connect (OIDC) identity provider in your account, and assumes the IAM role that you choose.
The agent calls the MCP server with the access token. When the token expires, the agent gets a new ID-JAG from the IdP, so the employee doesn't sign in again while their IdP session is active.
How IAM controls what agents can do
Your IdP decides which employees and agents get access. IAM decides what they can do:
IAM OIDC identity provider. It trusts the ID-JAGs that your IdP issues. Its audience is the AWS Sign-In issuer for each Region that employees use, such as
https://us-west-2.oauth.signin.aws.IAM role. Employees' agents assume it through the OIDC identity provider. The role needs permission to get access tokens,
signin:CreateOAuth2Token. For AWS MCP Server, attach theAWSMCPSignInOAuthAccessPolicyAWS managed policy. Also attach the permissions for the AWS actions that employees call through the MCP server.Your existing policies. An agent can perform only the actions that the role allows. IAM policies, service control policies (SCPs), resource control policies (RCPs), and permissions boundaries still apply.
AWS CloudTrail. CloudTrail records each token request as a
CreateOAuth2Tokenevent fromsignin.amazonaws.com, with the role session and the agent's client ID.
Set up enterprise-managed authorization
To set up EMA, you create the IAM OIDC identity provider and role, configure your IdP to issue ID-JAGs for AWS Sign-In, and configure each agent. For the steps, including how to configure your IdP and agents such as Kiro, Codex CLI, and Claude, see Configure enterprise-managed authorization for MCP servers in the AWS Sign-In User Guide.
For more information about the IAM resources that you create, see the following topics:
Create an OpenID Connect (OIDC) identity provider in IAM
Create a role for OpenID Connect federation