
Trying Out the AWS Managed Policies and CloudFormation Support for IAM Account Access Manager
This page has been translated by machine translation. View original
Introduction
On November 18, 2026, there was an update to AWS IAM account access manager.
Account access manager is a feature that assigns IAM roles in each account to users and groups in an organization instance of IAM Identity Center. With this update, it can now be enabled and managed with AWS managed policies, and can also be included in IaC configurations such as CloudFormation and Terraform.
This article introduces the differences between the three managed policies, the steps from enabling to assigning, and creating assignments with CloudFormation.
Test Environment
- Region: N. Virginia (us-east-1)
- IAM Identity Center: Organization instance (the owning account is the organization's management account)
- Execution account: The organization's management account
- AWS CLI: 2.42.4
Permissions of the Managed Policies
Policy Contents
The three managed policies that were added are as follows.
- AWSAccountAccessManagerAdministrator
- AWSAccountAccessManagerEntitlementManager
- AWSAccountAccessManagerReadOnlyAccess
Hereafter, I abbreviate them as Administrator, EntitlementManager, and ReadOnlyAccess. For all three, I retrieved the contents of the default version v1 with the following command and compared them.
aws iam get-policy-version --policy-arn arn:aws:iam::aws:policy/AWSAccountAccessManagerAdministrator --version-id v1 --output json
The difference between the three is the scope of operations they allow.
- Administrator: All operations from enabling to management. In addition to operations on account-access applications, assignments, and tags, it allows enabling and disabling service access in Organizations, registering and deregistering delegated administrators, and creating the service-linked role AWSServiceRoleForAccountAccessManager. Operations for service access and delegated administrators are limited to cases where the service principal is
account-access.amazonaws.com. - EntitlementManager: Creating and deleting assignments. It can also get and list applications and list tags, but cannot create or delete applications.
- ReadOnlyAccess: Getting and listing account-access applications and assignments, and listing tags.
All three also include read access to Identity Store and Organizations.
Simulator Results
I checked whether each action is allowed using aws iam simulate-custom-policy. For the resource, I specified an application ARN (arn:aws:account-access:us-east-1:<ACCOUNT_ID>:application/app-example).
| Action | Administrator | EntitlementManager | ReadOnlyAccess |
|---|---|---|---|
| account-access:CreateApplication | allowed | implicitDeny | implicitDeny |
| account-access:ListApplications | allowed | allowed | allowed |
| account-access:DeleteApplication | allowed | implicitDeny | implicitDeny |
| account-access:GetApplication | allowed | allowed | allowed |
| account-access:CreateEntitlement | allowed | allowed | implicitDeny |
| account-access:DeleteEntitlement | allowed | allowed | implicitDeny |
| account-access:ListEntitlements | allowed | allowed | allowed |
Enabling and Assigning
Execution Role
I created a test role, aam-verify-admin, and attached only Administrator to it.
aws iam attach-role-policy --role-name aam-verify-admin --policy-arn arn:aws:iam::aws:policy/AWSAccountAccessManagerAdministrator
The target group aam-verify-group and the IAM role to be assigned, aam-verify-target, were created with a role that has administrator permissions. Commands that call the Organizations and account-access APIs were run by assuming aam-verify-admin.
Enabling
Before creating an application, enable service access in the organization's management account.
aws organizations enable-aws-service-access --service-principal account-access.amazonaws.com
You can confirm that it has been enabled with the following command.
aws organizations list-aws-service-access-for-organization --query "EnabledServicePrincipals[?ServicePrincipal=='account-access.amazonaws.com']" --output json
[
{
"ServicePrincipal": "account-access.amazonaws.com",
"DateEnabled": "2026-11-30T10:31:25.097000+09:00"
}
]
Next, I created an application by specifying the Identity Center instance.
aws account-access create-application --identity-source '{"identityCenter":{"instanceArn":"<INSTANCE_ARN>"}}' --output json
{
"applicationArn": "arn:aws:account-access:us-east-1:<ACCOUNT_ID>:application/<APPLICATION_ID>"
}
In the get-application response, the status was ACTIVE.
aws account-access get-application --application-arn arn:aws:account-access:us-east-1:<ACCOUNT_ID>:application/<APPLICATION_ID> --output json
{
"identitySource": {
"identityCenter": {
"instanceArn": "<INSTANCE_ARN>",
"applicationArn": "<IDENTITY_CENTER_APPLICATION_ARN>"
}
},
"status": "ACTIVE",
"tenantId": "<TENANT_ID>",
"createdAt": "2026-11-30T01:31:32+00:00",
"updatedAt": "2026-11-30T01:31:32+00:00",
"tags": {
"resourceArn": "arn:aws:account-access:us-east-1:<ACCOUNT_ID>:application/<APPLICATION_ID>"
}
}
Assigning
The role to be assigned needs a trust policy that allows the account access manager service principal to assume the role. A Condition restricts the assuming source to your own account and the application created earlier. Because the trust policy contains the application's ARN, aam-verify-target is created after the application is created.
Trust policy of the role to be assigned (trust-target.json)
{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "AccountAccessManagerIAMRoleTrustPolicyStatement",
"Effect": "Allow",
"Principal": {"Service": "account-access.amazonaws.com"},
"Action": ["sts:AssumeRole", "sts:SetContext"],
"Condition": {
"StringEquals": {
"aws:SourceAccount": "<ACCOUNT_ID>",
"aws:SourceArn": "arn:aws:account-access:us-east-1:<ACCOUNT_ID>:application/<APPLICATION_ID>"
}
}
}
]
}
Pass this file to create the role to be assigned.
aws iam create-role --role-name aam-verify-target --assume-role-policy-document file://trust-target.json
I created the assignment by specifying the group ID and the role ARN in JSON.
aws account-access create-entitlement --application-arn arn:aws:account-access:us-east-1:<ACCOUNT_ID>:application/<APPLICATION_ID> --entitlement '{"principalRole":{"principal":{"identityCenter":{"groupId":"<GROUP_ID>"}},"roleArn":"arn:aws:iam::<ACCOUNT_ID>:role/aam-verify-target"}}' --output json
{
"entitlementId": "<ENTITLEMENT_ID>"
}
The created assignment can be retrieved with get-entitlement.
aws account-access get-entitlement --application-arn arn:aws:account-access:us-east-1:<ACCOUNT_ID>:application/<APPLICATION_ID> --entitlement-id <ENTITLEMENT_ID> --output json
{
"applicationArn": "arn:aws:account-access:us-east-1:<ACCOUNT_ID>:application/<APPLICATION_ID>",
"entitlementId": "<ENTITLEMENT_ID>",
"entitlement": {
"principalRole": {
"principal": {
"identityCenter": {
"groupId": "<GROUP_ID>"
}
},
"roleArn": "arn:aws:iam::<ACCOUNT_ID>:role/aam-verify-target",
"account": "<ACCOUNT_ID>",
"accountName": "<ACCOUNT_NAME>"
}
},
"createdAt": "2026-11-30T01:31:59+00:00"
}
list-entitlements requires both --application-arn and --filter. When I specified a group ID in --filter, one assignment for that group was returned.
aws account-access list-entitlements --application-arn arn:aws:account-access:us-east-1:<ACCOUNT_ID>:application/<APPLICATION_ID> --filter '{"principalRole":{"principal":{"identityCenter":{"groupId":"<GROUP_ID>"}}}}' --output json
Creating with CloudFormation
Template
The resource type for an assignment is AWS::AccountAccess::Entitlement. I saved the following template, which takes the application ARN, group ID, and role ARN as parameters, as entitlement-stack.yaml.
AWSTemplateFormatVersion: "2010-09-09"
Description: account access manager entitlement (verification)
Parameters:
ApplicationArn:
Type: String
GroupId:
Type: String
RoleArn:
Type: String
Resources:
Entitlement:
Type: AWS::AccountAccess::Entitlement
Properties:
ApplicationArn: !Ref ApplicationArn
Entitlement:
PrincipalRole:
Principal:
IdentityCenter:
GroupId: !Ref GroupId
RoleArn: !Ref RoleArn
Outputs:
EntitlementId:
Value: !GetAtt Entitlement.EntitlementId
Deployment
I ran the deployment not with aam-verify-admin but with a role that has administrator permissions. CloudFormation permissions are not included in Administrator, so they are required separately. Before deploying, I deleted the assignment created with the CLI using delete-entitlement.
aws cloudformation deploy --stack-name aam-verify-entitlement --template-file entitlement-stack.yaml --parameter-overrides ApplicationArn=arn:aws:account-access:us-east-1:<ACCOUNT_ID>:application/<APPLICATION_ID> GroupId=<GROUP_ID> RoleArn=arn:aws:iam::<ACCOUNT_ID>:role/aam-verify-target --no-fail-on-empty-changeset
Waiting for changeset to be created..
Waiting for stack create/update to complete
Successfully created/updated stack - aam-verify-entitlement
You can confirm the ID of the created assignment in the stack's outputs.
aws cloudformation describe-stacks --stack-name aam-verify-entitlement --query 'Stacks[0].[StackStatus,Outputs]' --output json
[
"CREATE_COMPLETE",
[
{
"OutputKey": "EntitlementId",
"OutputValue": "<CFN_ENTITLEMENT_ID>"
}
]
]
When I ran the earlier list-entitlements, one assignment with the same ID as the stack output was returned.
Changing and Deleting
In the resource type's schema, ApplicationArn and Entitlement are specified in createOnlyProperties, so changing them results in replacement of the resource. When I deleted the stack, the assignment was also deleted. Running list-entitlements after delete-stack returned an empty list.
Summary
I was able to enable AWS IAM account access manager in the organization's management account and carry things through to assigning an IAM role.
Previously, you had to write permissions spanning IAM Identity Center, Organizations, KMS, and IAM into policies yourself. With this update, a role with Administrator attached can do everything from enabling to creating assignments, and assignments can be managed as code with CloudFormation templates.
Separation of permissions has also become easier to set up: for example, performing the initial setup with Administrator, and deploying day-to-day assignment changes from a CI/CD pipeline that has EntitlementManager and CloudFormation permissions. If you want to manage role assignments within your organization as code, please give it a try.
