AWS IAM Identity Center · 2026-11-15 · IAM Identity Center arc
AWS IAM Identity Center for MCP Server Teams: The Four-Layer Credential Journey from Identity Source to STS Token
MCP server platforms spanning multiple AWS accounts — production, staging, data, shared-services — face a credential management problem that IAM alone cannot solve cleanly. Long-lived IAM user access keys rot undetected, per-account cross-account trust policies compound with every new account, and there is no central audit trail that names the actual human behind a tool call. AWS IAM Identity Center (formerly AWS Single Sign-On) solves all three: short-lived credentials, centrally managed access, and a CloudTrail record that names the original IdC principal even after three layers of role assumption. This guide synthesizes the full IAM Identity Center surface area for MCP server teams into a four-layer playbook: identity source setup, permission set definition, account assignment wiring, and the two credential-vending paths — along with the four silent failure modes that trip every team on first deployment.
TL;DR
IAM Identity Center has four interlocking layers. Each layer has one production-critical gotcha that causes silent failures:
| Layer | What it does | The gotcha |
|---|---|---|
| 1 — Identity source | Organization instance + built-in directory / AD / external IdP | Must be enabled in the management account; account instances don't support cross-account assignment |
| 2 — Permission sets | IAM policy templates that become roles in target accounts | CustomerManagedPolicyReference attaches by name, not ARN — policy must exist in every target account before ProvisionPermissionSet |
| 3 — Account assignments | Which user/group gets which permission set in which account | Both CreateAccountAssignment and ProvisionPermissionSet are async — must poll separate status commands; assignment status does not imply role existence |
| 4 — Credential vending | CLI SSO sessions (dev) or OIDC device flow (tooling) | OIDC device flow requires a human present to approve; never use it in unattended ECS/Lambda/EC2 |
SDK packages: @aws-sdk/client-sso-admin (permission sets, assignments), @aws-sdk/client-identitystore (users, groups), @aws-sdk/client-sso (credential vending), @aws-sdk/client-sso-oidc (device auth flow).
Why IAM Identity Center for MCP server infrastructure
MCP server platforms grow into multi-account topologies quickly. A production account runs the MCP servers; a data account holds the DynamoDB tables and S3 buckets the servers read; a shared-services account provides secrets and certificates; a staging account mirrors production for pre-release testing. The traditional approaches to cross-account access each have hard limits:
- IAM users per account with long-lived keys: keys rotate on a human schedule (meaning they often don't), there is no central policy, and a leaked key grants access to exactly one account — giving false confidence about blast radius.
- Cross-account
sts:AssumeRoletrust policies: the right primitive for service-to-service calls, but requires manually wiring trust relationships in every account, and CloudTrail records the assuming role ARN rather than the original human identity. - No single pane of glass: when a developer needs to investigate a production incident, they must switch credential contexts manually per account, often juggling four terminal tabs with different
AWS_PROFILEvalues.
IAM Identity Center solves the human-access layer by centralizing it: one identity store, permission sets defined once and pushed to every account, CLI SSO sessions that issue account-scoped temporary credentials on demand, and a CloudTrail trail where every action traces back to a named IdC user — even after the OIDC token was exchanged for STS credentials three hops deep.
For MCP server teams specifically, IdC adds a capability that neither IAM roles nor cross-account AssumeRole provide: a programmatic OIDC device authorization flow that lets local MCP server launchers and CLI tooling authenticate the developer interactively, then issue short-lived STS credentials for every account the developer is assigned to — without storing any long-lived secrets on disk.
Layer 1: Organization setup and identity source selection
An IAM Identity Center instance is the top-level container for everything — the identity store, permission sets, and account assignments all live under it. There are two instance types:
- Organization instance: enabled once in the management account of an AWS Organizations structure. Integrates with the OU hierarchy. Supports cross-account assignment to any member account.
- Account instance: enabled in any standalone account. No cross-account support. Use only for sandbox accounts that cannot join an org.
The critical constraint: you can only create an organization instance from the management account, and you can only have one per organization. Attempts to enable IdC in a member account create an account instance, which cannot issue cross-account credentials and cannot be migrated to an organization instance later.
Once enabled, discover the instance with ListInstancesCommand:
import { SSOAdminClient, ListInstancesCommand } from "@aws-sdk/client-sso-admin";
const admin = new SSOAdminClient({ region: "us-east-1" });
const { Instances } = await admin.send(new ListInstancesCommand({}));
// Always one entry for org instance
const { InstanceArn, IdentityStoreId, SsoPortalUrl } = Instances[0];
Cache InstanceArn and IdentityStoreId — every downstream API call requires them. SsoPortalUrl is the base URL developers use to log in and access the account list.
Identity source options:
| Source | How users are managed | Best for | Key constraint |
|---|---|---|---|
| Built-in directory | IdC console / IdentityStore API | Small teams, no existing IdP | No SCIM sync; users must be created manually or via API |
| AWS Managed Microsoft AD | Active Directory | Enterprises with on-prem AD | AD Connector required; latency for large directories |
| External IdP (SAML 2.0 + OIDC) | Okta, Azure AD, Google Workspace | Companies with existing SSO | SCIM provisioning for automatic user/group sync; without SCIM, accounts exist in IdP but are invisible in IdentityStore |
When using the built-in directory, you can manage users and groups programmatically via @aws-sdk/client-identitystore. The IdentityStoreId from the instance listing is the required parameter for all calls. User lookups by email require the AlternateIdentifier.UniqueAttribute path — not a simple email parameter:
import { IdentityStoreClient, GetUserIdCommand } from "@aws-sdk/client-identitystore";
const store = new IdentityStoreClient({ region: "us-east-1" });
const { UserId } = await store.send(new GetUserIdCommand({
IdentityStoreId: identityStoreId,
AlternateIdentifier: {
UniqueAttribute: {
AttributePath: "emails.value",
AttributeValue: "alice@example.com"
}
}
}));
ListUsersCommand filters also use the AlternateIdentifier path and support only exact-match comparisons — there is no prefix or substring search in the IdentityStore API. For bulk user discovery, paginate with paginateListUsers and filter client-side.
See the full IAM Identity Center overview for the complete IdentityStoreClient user and group management reference.
Layer 2: Permission sets — the IAM template layer
A permission set is an IAM policy template stored in the organization instance. When you assign a user or group to an account with a permission set, IdC creates (or updates) an IAM role in that target account named AWSReservedSSO_{PermissionSetName}_{random8hex}. The role's trust policy trusts IdC's SAML federation endpoint and cannot be edited directly — edits to trust policies in target accounts are overwritten the next time the permission set is provisioned.
Creating a permission set
import {
SSOAdminClient,
CreatePermissionSetCommand,
AttachManagedPolicyToPermissionSetCommand,
PutInlinePolicyToPermissionSetCommand,
AttachCustomerManagedPolicyReferenceToPermissionSetCommand,
PutPermissionsBoundaryToPermissionSetCommand
} from "@aws-sdk/client-sso-admin";
const { PermissionSet } = await admin.send(new CreatePermissionSetCommand({
InstanceArn: instanceArn,
Name: "MCP-DeveloperAccess", // 1–32 characters, no spaces
Description: "Full MCP developer access across data and staging accounts",
SessionDuration: "PT8H", // ISO 8601 duration: PT1H–PT12H
RelayStateType: "https://console.aws.amazon.com/console/home" // optional deep-link on portal login
}));
const permissionSetArn = PermissionSet.PermissionSetArn;
The SessionDuration range is PT1H to PT12H; the default is PT1H. Setting it higher is convenient for developers but widens the exposure window for a stolen OIDC token. For least-privilege production permission sets, PT1H is appropriate. For developer accounts, PT8H avoids repeated re-authentication interruptions during a workday.
Policy attachment: four options
Option 1 — AWS managed policy: attach by ARN, up to 10 per permission set:
await admin.send(new AttachManagedPolicyToPermissionSetCommand({
InstanceArn: instanceArn,
PermissionSetArn: permissionSetArn,
ManagedPolicyArn: "arn:aws:iam::aws:policy/ReadOnlyAccess"
}));
Option 2 — Inline policy: exactly one inline policy per permission set. A second PutInlinePolicyToPermissionSetCommand call replaces the first silently — it does not append:
await admin.send(new PutInlinePolicyToPermissionSetCommand({
InstanceArn: instanceArn,
PermissionSetArn: permissionSetArn,
InlinePolicy: JSON.stringify({
Version: "2012-10-17",
Statement: [{
Effect: "Allow",
Action: ["dynamodb:GetItem", "dynamodb:Query", "dynamodb:BatchGetItem"],
Resource: "arn:aws:dynamodb:us-east-1:*:table/mcp-*"
}]
})
}));
Option 3 — Customer-managed policy (the name-not-ARN gotcha): AttachCustomerManagedPolicyReferenceToPermissionSetCommand attaches a customer-managed policy by name, not ARN. This is the most common silent-failure point in IdC deployments:
await admin.send(new AttachCustomerManagedPolicyReferenceToPermissionSetCommand({
InstanceArn: instanceArn,
PermissionSetArn: permissionSetArn,
CustomerManagedPolicyReference: {
Name: "MCPServerDeveloperPolicy", // name, not ARN
Path: "/" // IAM path, defaults to "/"
}
}));
The policy named MCPServerDeveloperPolicy must exist in every target account at the same IAM path before you call ProvisionPermissionSet. If the policy is missing in any account, provisioning fails with FailureReason: INTERNAL_FAILURE — an error that does not name the missing policy or the account. The standard pattern is to pre-deploy customer-managed policies via CloudFormation StackSets targeting the same OUs as the account assignments, and to block permission set provisioning behind a CI step that verifies the policies exist in all target accounts.
Option 4 — Permissions boundary: limits the maximum effective permissions of the generated IAM role, preventing privilege escalation even if a session policy or resource policy would otherwise allow it:
await admin.send(new PutPermissionsBoundaryToPermissionSetCommand({
InstanceArn: instanceArn,
PermissionSetArn: permissionSetArn,
PermissionsBoundary: {
// Either AWS managed policy ARN:
ManagedPolicyArn: "arn:aws:iam::aws:policy/PowerUserAccess",
// OR customer-managed policy by name (same name-not-ARN constraint as above):
// CustomerManagedPolicyReference: { Name: "MaxPermsBoundary", Path: "/" }
}
}));
Provisioning: the async push to target accounts
Attaching policies to a permission set does not automatically push the changes to target accounts. ProvisionPermissionSetCommand triggers an asynchronous job that creates or updates AWSReservedSSO_* roles in every account currently assigned to the permission set. The job returns a ProvisionPermissionSetRequestId that you must poll:
import { DescribePermissionSetProvisioningStatusCommand } from "@aws-sdk/client-sso-admin";
const { PermissionSetProvisioningStatus } = await admin.send(
new ProvisionPermissionSetCommand({
InstanceArn: instanceArn,
PermissionSetArn: permissionSetArn,
ProvisioningStrategy: "ALL_PROVISIONED_ACCOUNTS"
// Or: TargetType: "AWS_ACCOUNT", TargetId: "123456789012"
})
);
// Poll until SUCCEEDED or FAILED
let status = PermissionSetProvisioningStatus;
while (status.Status === "IN_PROGRESS") {
await new Promise(r => setTimeout(r, 2000));
const result = await admin.send(
new DescribePermissionSetProvisioningStatusCommand({
InstanceArn: instanceArn,
ProvisionPermissionSetRequestId: status.RequestId
})
);
status = result.PermissionSetProvisioningStatus;
}
if (status.Status === "FAILED") {
// FailureReason values:
// INTERNAL_FAILURE → customer-managed policy missing in target account
// SERVICE_QUOTA_EXCEEDED → IAM role quota (1000/account) hit
// NO_MANAGEMENT_MASTER → target account left the organization
throw new Error(`Provisioning failed: ${status.FailureReason}`);
}
See the permission sets deep dive for the complete provisioning reference including CustomerManagedPolicyReference, ProvisionPermissionSet async polling, and all three FailureReason values.
Layer 3: Account assignments — wiring principals to accounts
An account assignment is the tuple that grants a user or group access to an account with a specific permission set. Creating one is a separate async operation from permission set provisioning — both must succeed before a user can generate credentials for a target account.
Creating an account assignment
import {
CreateAccountAssignmentCommand,
DescribeAccountAssignmentCreationStatusCommand
} from "@aws-sdk/client-sso-admin";
const { AccountAssignmentCreationStatus } = await admin.send(
new CreateAccountAssignmentCommand({
InstanceArn: instanceArn,
TargetId: "123456789012", // AWS account ID
TargetType: "AWS_ACCOUNT",
PermissionSetArn: permissionSetArn,
PrincipalType: "GROUP", // or "USER"
PrincipalId: groupId // from IdentityStore CreateGroupCommand
})
);
// Poll until SUCCEEDED or FAILED
let status = AccountAssignmentCreationStatus;
while (status.Status === "IN_PROGRESS") {
await new Promise(r => setTimeout(r, 1500));
const result = await admin.send(
new DescribeAccountAssignmentCreationStatusCommand({
InstanceArn: instanceArn,
AccountAssignmentCreationRequestId: status.RequestId
})
);
status = result.AccountAssignmentCreationStatus;
}
A common mistake: treating SUCCEEDED from DescribeAccountAssignmentCreationStatus as proof that the target account now has the IAM role. The assignment record is created in the IdC control plane at that point, but the actual AWSReservedSSO_* IAM role in the target account may still be syncing. If your automation immediately attempts to call GetRoleCredentials after assignment creation, it may receive a ResourceNotFoundException for a few seconds. Add a brief poll on ListAccountRoles in the SSO client to confirm the role is visible before issuing credentials.
Batch assignment across the organization
Assigning a group to every account in the org — a common pattern for read-only audit roles — requires paginating the account list and throttling the assignment calls to avoid hitting the IdC API rate limits (approximately 10 write operations per second for account assignments):
import { paginateListAccounts } from "@aws-sdk/client-organizations";
import { OrganizationsClient } from "@aws-sdk/client-organizations";
const orgClient = new OrganizationsClient({ region: "us-east-1" });
for await (const page of paginateListAccounts({ client: orgClient }, {})) {
for (const account of page.Accounts) {
if (account.Status !== "ACTIVE") continue;
await admin.send(new CreateAccountAssignmentCommand({
InstanceArn: instanceArn,
TargetId: account.Id,
TargetType: "AWS_ACCOUNT",
PermissionSetArn: auditPermissionSetArn,
PrincipalType: "GROUP",
PrincipalId: auditGroupId
}));
// Throttle: IdC write quota ~10 req/s — 150ms gives comfortable headroom
await new Promise(r => setTimeout(r, 150));
}
}
For discovery — finding all accounts a user or group is assigned to — use ListAccountAssignmentsForPrincipalCommand. This returns the full (TargetId, PermissionSetArn) pairs without having to paginate per-account:
import { paginateListAccountAssignmentsForPrincipal } from "@aws-sdk/client-sso-admin";
for await (const page of paginateListAccountAssignmentsForPrincipal(
{ client: admin },
{ InstanceArn: instanceArn, PrincipalId: userId, PrincipalType: "USER" }
)) {
for (const assignment of page.AccountAssignments) {
console.log(assignment.AccountId, assignment.PermissionSetArn);
}
}
CDK: declaring assignments as infrastructure
AWS CDK does not have an L2 construct for IAM Identity Center account assignments as of late 2026, but the L1 construct is straightforward:
import { CfnAssignment } from "aws-cdk-lib/aws-sso";
new CfnAssignment(this, "MCP-Dev-Assignment", {
instanceArn: instanceArn,
targetId: prodAccount.accountId,
targetType: "AWS_ACCOUNT",
permissionSetArn: devPermissionSetArn,
principalType: "GROUP",
principalId: devGroupId
});
See the account assignments reference for the complete CDK example, CLI SSO profile config, and the GetRoleCredentialsCommand credential exchange flow.
Layer 4: Credential vending — the two paths
Once a user is assigned to an account with a permission set, there are two ways to actually get STS credentials. Which path you use depends on whether a human is present during authentication.
Path A: CLI SSO sessions for local developer workflows
CLI SSO sessions are configured in ~/.aws/config as two stanzas: an sso-session block (the IdC instance parameters) and one or more profile blocks (each combining the session with a specific account and role):
# ~/.aws/config
[sso-session alivemcp-org]
sso_start_url = https://d-abc12345.awsapps.com/start
sso_region = us-east-1
sso_registration_scopes = sso:account:access
[profile mcp-prod]
sso_session = alivemcp-org
sso_account_id = 111122223333
sso_role_name = AWSReservedSSO_MCP-DeveloperAccess_a1b2c3d4
region = us-east-1
output = json
[profile mcp-data]
sso_session = alivemcp-org
sso_account_id = 444455556666
sso_role_name = AWSReservedSSO_MCP-DeveloperAccess_a1b2c3d4
region = us-east-1
Developers then run aws sso login --sso-session alivemcp-org, which opens a browser to the SSO portal, authenticates, and caches the access token in ~/.aws/sso/cache/. The cached token is valid for the session duration configured on the IdC instance (up to 90 days for browser-based sessions). After login, all profiles sharing the sso-session block use the cached token automatically — no per-account re-login needed.
The SSO-issued token is exchanged for account-scoped STS credentials by the SDK's credential provider chain. AWS_PROFILE=mcp-prod node server.js causes the SDK to call sso:GetRoleCredentials using the cached token and store short-lived credentials locally. The developer does not handle this exchange manually.
Path B: OIDC device authorization flow for CLI tooling and local MCP launchers
The OIDC device authorization flow lets a programmatic tool authenticate a human user interactively and then exchange the resulting token for STS credentials in any assigned account. The flow uses four commands from @aws-sdk/client-sso-oidc:
import {
SSOOIDCClient,
RegisterClientCommand,
StartDeviceAuthorizationCommand,
CreateTokenCommand
} from "@aws-sdk/client-sso-oidc";
import { SSOClient, GetRoleCredentialsCommand } from "@aws-sdk/client-sso";
const oidc = new SSOOIDCClient({ region: "us-east-1" });
// Step 1: Register as an OIDC public client (cache clientId + clientSecret ~90 days)
const { clientId, clientSecret, clientSecretExpiresAt } = await oidc.send(
new RegisterClientCommand({
clientName: "mcp-server-launcher",
clientType: "public",
scopes: ["sso:account:access"]
})
);
// Cache in ~/.aws/sso/cache/ with 0o600 permissions
// Step 2: Start the device authorization
const {
deviceCode, userCode, verificationUri, verificationUriComplete, expiresIn, interval
} = await oidc.send(new StartDeviceAuthorizationCommand({
clientId,
clientSecret,
startUrl: "https://d-abc12345.awsapps.com/start"
}));
// Present to the user: open verificationUriComplete in browser (includes userCode pre-filled)
// or show verificationUri + userCode for manual entry
console.log(`Open this URL to authenticate: ${verificationUriComplete}`);
// Step 3: Poll CreateToken until approved or expired
let accessToken: string | undefined;
let pollInterval = interval ?? 5; // seconds; never poll faster than this
const deadline = Date.now() + expiresIn * 1000;
while (Date.now() < deadline) {
await new Promise(r => setTimeout(r, pollInterval * 1000));
try {
const tokenResult = await oidc.send(new CreateTokenCommand({
clientId,
clientSecret,
grantType: "urn:ietf:params:oauth:grant-type:device_code",
deviceCode
}));
accessToken = tokenResult.accessToken;
// Also cache tokenResult.refreshToken for token rotation
break;
} catch (err: any) {
switch (err.name) {
case "AuthorizationPendingException":
break; // keep polling — user has not yet approved
case "SlowDownException":
pollInterval += 5; // back off per RFC 8628
break;
case "ExpiredTokenException":
throw new Error("Device code expired — restart the flow");
case "AccessDeniedException":
throw new Error("User denied authorization");
default:
throw err;
}
}
}
// Step 4: Exchange access token for account-scoped STS credentials
const sso = new SSOClient({ region: "us-east-1" });
const { roleCredentials } = await sso.send(new GetRoleCredentialsCommand({
accessToken,
accountId: "111122223333",
roleName: "AWSReservedSSO_MCP-DeveloperAccess_a1b2c3d4"
}));
// roleCredentials.accessKeyId, secretAccessKey, sessionToken, expiration (ms since epoch)
When NOT to use the device authorization flow
The device flow requires a human to be present and approve the authorization in a browser. It is not appropriate for unattended workloads:
- ECS tasks and Lambda functions: use the execution role IAM credentials provided automatically by the runtime. These are sourced from the container or instance metadata endpoint, not IdC.
- EC2 instances: use instance profiles attached to the instance, or IRSA for EKS pods.
- CI/CD pipelines: use OIDC federation between the CI provider (GitHub Actions, GitLab CI) and AWS IAM — not IdC device auth. GitHub Actions supports native OIDC trust with IAM roles, eliminating stored credentials entirely.
- Shared server processes: a device code is single-use. If the server restarts and the token expires, there is no way to automatically re-authenticate without a human present.
The device flow's correct target is local developer tooling — an MCP server launcher that runs on a developer's laptop, needs credentials for multiple accounts, and can open a browser or display a URL for the developer to approve. See the OIDC device auth reference for the full error-handling pattern and token caching strategy.
Token caching and refresh strategy
The access token returned by CreateTokenCommand is typically valid for 8–24 hours depending on the IdC session duration setting. The refreshToken can extend it without requiring a new device authorization. The correct layered refresh strategy:
async function getAccessToken(cache: TokenCache): Promise {
// 1. Try cached access token (check expiry with 5-minute buffer)
if (cache.accessToken && cache.expiresAt > Date.now() + 300_000) {
return cache.accessToken;
}
// 2. Try refresh token rotation
if (cache.refreshToken) {
try {
const result = await oidc.send(new CreateTokenCommand({
clientId: cache.clientId,
clientSecret: cache.clientSecret,
grantType: "refresh_token",
refreshToken: cache.refreshToken
}));
cache.update(result); // new accessToken + new refreshToken (rotation)
return result.accessToken!;
} catch {
// Refresh token expired or invalidated — fall through to device flow
}
}
// 3. Full device authorization flow (requires human present)
return await runDeviceAuthorizationFlow(cache);
}
Store all cached tokens in ~/.aws/sso/cache/ with file mode 0o600. Never store them as environment variables or in code — a leaked access token grants credentials to every account the user is assigned to for the remaining token lifetime.
The CloudTrail audit split: where IdC events actually appear
Teams migrating from IAM-centric monitoring to IdC often find their CloudTrail dashboards show unexpected gaps. The confusion comes from IdC events being split across two CloudTrail event sources instead of one:
| Event source | What it records | Notable behavior |
|---|---|---|
sso.amazonaws.com |
Authentication events (portal login, token issuance, GetRoleCredentials) | userIdentity.type = "Unknown" — this is correct, not an error; the principal is the IdC user, not an IAM user |
identitystore.amazonaws.com |
Identity management (CreateUser, CreateGroup, group membership changes) | Always recorded in the management account where IdC is enabled |
sso-admin.amazonaws.com |
Control-plane operations (CreatePermissionSet, CreateAccountAssignment, ProvisionPermissionSet) | Also in management account; use these events to audit permission set changes |
When a developer uses a CLI SSO session to run aws dynamodb get-item in the data account, the resulting CloudTrail event in the data account shows userIdentity.type = "AssumedRole" with the ARN of the AWSReservedSSO_* role — but the userIdentity.sessionContext.webIdFederationData.federatedProvider and the principal tags attached to the session identify the original IdC user. Set up CloudTrail multi-region trails in the management account with event source filters on sso.amazonaws.com, identitystore.amazonaws.com, and sso-admin.amazonaws.com to capture the full identity lifecycle.
One more gotcha: sso.amazonaws.com events are only recorded in the region where IAM Identity Center is enabled (us-east-1 for most organizations). If your CloudTrail trail is region-scoped to another region, you will not see authentication events. Enable a global CloudTrail multi-region trail — or explicitly include us-east-1 in any region-scoped trail that needs to capture IdC events.
The Organizations + IdC pairing for MCP server platforms
IAM Identity Center is most powerful when combined with AWS Organizations SCPs and delegated administration. The standard pattern for MCP server platforms:
- Organizations manages account structure: a production OU, a staging OU, a data OU. Each OU has SCPs that deny specific dangerous operations (CreateUser with console access, DeleteCloudTrailTrail, DisableSecurityHub).
- IdC manages human access to those accounts: a developer group gets a DeveloperAccess permission set assignment across the staging and data OUs; a read-only group gets a ReadOnlyAccess permission set across all OUs; an on-call group gets an IncidentResponse permission set with elevated (but time-bounded) write access to production.
- Service-to-service access uses IAM roles, not IdC: MCP servers running in ECS use execution role credentials and cross-account AssumeRole for resource access in other accounts. IdC is the human-access layer; IAM roles are the machine-access layer.
Delegated administration is worth setting up early: register the shared-services account as the IdC delegated administrator so your platform team can manage permission sets and assignments without requiring management account access for routine operations:
import { RegisterDelegatedAdministratorCommand } from "@aws-sdk/client-organizations";
await orgClient.send(new RegisterDelegatedAdministratorCommand({
AccountId: "SHARED_SERVICES_ACCOUNT_ID",
ServicePrincipal: "sso.amazonaws.com"
}));
See the Organizations delegated admin reference and the IAM and STS deep dive for the full service-to-service credential pattern.
Monitoring IdC-secured MCP servers with AliveMCP
IAM Identity Center does not change how MCP endpoints are exposed to the network — they still respond to HTTP requests (or SSE streams) on whatever port and path the host platform provides. What IdC changes is the credential lifecycle of the humans and processes that call those endpoints.
AliveMCP's uptime monitoring operates at the protocol level: it issues a JSON-RPC initialize probe to each registered endpoint every 60 seconds and records the response code, latency, and schema. If the MCP server stops responding because the ECS task crashed, the ALB health check failed, or a dependency like DynamoDB went into an error state, AliveMCP detects it immediately — regardless of whether the client credentials are IdC-issued or IAM-role-issued.
For teams running IdC-secured MCP servers, AliveMCP surfaces the gap between "credentials are healthy" (IdC reports no issues) and "the endpoint is actually responding correctly" (AliveMCP confirms). Both checks are necessary — an IdC outage (rare) would affect credential vending, while an application or infrastructure fault affects the endpoint independently of the credential layer.
See the MCP server identity providers guide for a comparison of IdC, Cognito, Auth0, and custom JWT-based auth for MCP server platforms.
Checklist: deploying IAM Identity Center for an MCP server team
- Enable IAM Identity Center in the management account (not a member account). Note the
InstanceArnandIdentityStoreId. - Choose identity source: built-in directory for small teams; external IdP with SCIM sync for companies with existing SSO.
- Pre-deploy customer-managed policies via StackSets to all target accounts before creating permission sets that reference them. Use
CustomerManagedPolicyReference.Name(not ARN). - Create permission sets (
MCP-DeveloperAccess,MCP-ReadOnly,MCP-IncidentResponse). Attach policies. SetSessionDurationper sensitivity tier. - Provision each permission set to all relevant accounts. Poll
DescribePermissionSetProvisioningStatusCommanduntilSUCCEEDED. HandleINTERNAL_FAILURE(missing customer-managed policy). - Create account assignments. Poll
DescribeAccountAssignmentCreationStatusCommand. Throttle at 150ms per assignment for org-wide batches. - Configure CLI SSO profiles in a shared
configtemplate (or manage via SSM Parameter Store). Distribute to developers. - Build OIDC device auth flow in local MCP launcher tooling (humans-present scenarios only). Cache client registration and tokens in
~/.aws/sso/cache/with0o600permissions. - Set up CloudTrail multi-region trail covering us-east-1. Filter on
sso.amazonaws.com+identitystore.amazonaws.com+sso-admin.amazonaws.com. - Register delegated administrator in shared-services account so the platform team can manage IdC without management account access.