On this page · 12 sections
- What AWS shipped on 19 November 2026
- The API in detail
- How the permissions are calculated
- Governance: who may call it, and for how long
- How it compares with session policies, role chaining and separate roles
- Decision table: which mechanism to use
- Limits to plan around
- Worked example: a 400-person software company
- What to do before re:Invent
- Sidebar: AWS Marketplace agent payments over x402
- How eCorpIT can help
- References
Summary. On 19 November 2026 AWS Security Token Service (STS) launched GetScopedCredentials, an API that takes the temporary credentials an agent already holds and returns a narrower copy: fewer permissions, a shorter lifetime, or both. The copy keeps the caller's principal ARN, role session name, session tags and source identity, so CloudTrail still shows who started the work. A scope-down policy can be up to 2,048 characters, a lifetime runs from 1 second to 129,600 seconds (36 hours) but never past the caller's remaining session, and a session takes at most 3 scope-down layers. Unlike re-assuming a role with a session policy, the layers stack instead of replacing each other, and the one-hour role-chaining cap does not apply. STS carries no additional charge, and the API has its own default quota of 200 requests per second per account per Region. The catches: it does not work on the STS global endpoint, you cannot revoke a scoped credential apart from its parent session, and five services, including Amazon MemoryDB and older Amazon OpenSearch Service releases, reject these credentials. Our verdict: teams running agents on AWS should pilot scoped credentials for sub-agents and tool calls before re:Invent opens on 30 November, with lifetimes of 15 minutes or less.
About this article. This is for cloud security architects, AWS platform teams and engineers building agents on Amazon Bedrock AgentCore or their own runtimes. We checked every parameter, limit, quota and price against AWS What's New posts, the STS API Reference, the IAM User Guide, the AgentCore and AWS Marketplace documentation, the AWS SDK for Python release notes and AWS pricing pages on 21 November 2026, and the US and UK references against NIST and GOV.UK. This is general information, not legal or security advice for your environment; AWS can change limits and prices, and no vendor paid for inclusion. Researched with AI assistance and checked against the primary sources listed in the references.
What AWS shipped on 19 November 2026
AWS describes the API as a way to give agents, sub-agents and workloads their own credentials with only the permissions they need. You call it with temporary credentials you already use, and the result's permissions and session duration can only narrow, never exceed the caller's. IAM policies control who may call it, and CloudTrail logs every call. It is available in all commercial Regions, AWS GovCloud (US), the AWS European Sovereign Cloud (Germany) and the China Regions.
That solves a specific agent problem. An orchestrator agent typically runs under one IAM role holding the union of every permission its tools might need. When it hands work to a sub-agent that only summarises S3 documents, the sub-agent inherits everything, including delete and IAM permissions. Until now the options were to pre-create many narrow roles and assume them, or to re-assume a role with a session policy and accept the trade-offs covered below. GetScopedCredentials lets the orchestrator mint a cut-down copy of its own session for each piece of work, in-process, without new roles or trust policies. If you are still designing agent identity from scratch, our non-human identity governance guide covers the wider identity model this API slots into.
| Fact | Value |
|---|---|
| Launch date | 19 November 2026 |
| Who can call | Holders of temporary credentials, such as an assumed-role or federated session; IAM users must first call GetSessionToken or GetFederationToken; not directly with IAM user or root credentials |
| Lifetime | 1 to 129,600 seconds, capped at the caller's remaining lifetime; defaults to that remaining lifetime |
| Scope-down policy | Up to 2,048 characters of JSON, plus a separate packed-size limit |
| Nesting | Up to 3 scope-down layers per session |
| Permission needed | sts:GetScopedCredentials allowed in the caller's effective permissions |
| Request quota | 200 requests per second per account per Region, separate from the shared STS quota |
| Endpoint | Regional STS endpoints only, not the global endpoint |
| Price | STS is offered at no additional charge |
The table draws on the launch post, the API reference, the IAM permissions page and comparison table, the quotas page and the IAM cost note.
The API in detail
The API reference defines four optional request parameters, and a request must include at least one of Policy or DurationSeconds.
| Parameter | Limits | What it does |
|---|---|---|
| Policy | 1 to 2,048 characters; fails with PackedPolicyTooLarge if the session token grows too large | Inline JSON scope-down policy; the result is the intersection with the caller's permissions |
| DurationSeconds | 1 to 129,600 | Lifetime of the scoped credentials; InsufficientSessionLifetime if longer than the caller's remaining time |
| ScopedSessionDescription | 2 to 256 characters | Free-text purpose, written to CloudTrail |
| MinimumSessionTokenSize | 0 to 4,096 bytes | Pads the session token to at least this size |
The response returns the Credentials (access key ID, secret key, session token, expiry), ScopedPoliciesCount, SessionInfo with the unchanged session ARN, SessionTokenSize, SessionTokenUtilization as a percentage of the maximum token size, and the carried-forward SourceIdentity. AWS does not explain the use case for MinimumSessionTokenSize; our reading is that it lets you test or fix token sizes for downstream systems that store tokens.
In Python, botocore and boto3 1.44.7, published on 19 November 2026, added the operation, which boto3 exposes as get_scoped_credentials. A minimal sketch for an orchestrator handing a summary sub-agent read-only access to one S3 prefix for 15 minutes:
import json
import boto3
# GetScopedCredentials is not available on the STS global endpoint
sts = boto3.client("sts", region_name="us-east-1",
endpoint_url="https://sts.us-east-1.amazonaws.com")
scope = {
"Version": "2012-10-17",
"Statement": [{
"Effect": "Allow",
"Action": ["s3:GetObject"],
"Resource": "arn:aws:s3:::example-support-kb/tickets/*",
}],
}
resp = sts.get_scoped_credentials(
Policy=json.dumps(scope),
DurationSeconds=900,
ScopedSessionDescription="ticket-summary sub-agent, run 7f3a",
)
c = resp["Credentials"]
sub_agent = boto3.Session(
aws_access_key_id=c["AccessKeyId"],
aws_secret_access_key=c["SecretAccessKey"],
aws_session_token=c["SessionToken"],
)
print(resp["ScopedPoliciesCount"], resp["SessionTokenUtilization"])
Pass only the three credential values to the sub-agent's process, never the parent's. Check that other SDKs, and any SDK copies baked into agent container images, are new enough before you ship.
How the permissions are calculated
The IAM permissions page defines the result as the intersection of three things: the calling session's effective permissions (already limited by identity policies, session policies, permissions boundaries, SCPs, RCPs and VPC endpoint policies), the scope-down policy in this call, and any scope-down policies from earlier calls in the chain. An action is allowed only if every layer permits it.
Five behaviours shape how you design with it:
- Layers accumulate. Each call adds an independent layer and prior restrictions are never removed. A sub-agent cannot widen its own credentials by calling the API again, and once a session carries 3 layers, any further call that supplies a
Policyis denied. Design agent hierarchies no deeper than orchestrator, sub-agent and tool.
- Identity is preserved, and frozen. Principal ARN, role session name, session tags including transitive keys, source identity and context keys such as
aws:SourceIpcarry over. You cannot add or change session tags or set a source identity, so attribute-based access control has to be settled when the parent session is created.
- Same-account resource policies do not rescue you. With
AssumeRolecredentials, a same-account resource policy that trusts a wildcard principal or names the session principal can grant access a session policy does not cover. For scoped credentials, both the identity policy and the scope-down policy must allow the action, whatever that resource policy says. Cross-account access, and resource policies that name an account or role ARN, behave as before. Write every needed action and resource into the scope-down policy.
- KMS caching can leak recent access. AWS warns that some services cache KMS data keys without session-specific context, so a scope-down policy that removes KMS permissions might not block data the calling session's role accessed recently.
- Some services reject the credentials. AWS lists Amazon MemoryDB, AWS Quick, Amazon CloudSearch, Amazon Neptune Database engine versions earlier than 1.2.0.0, and Amazon OpenSearch Service domains on older software releases: Elasticsearch 7.9 to OpenSearch 3.7 before release R20260929, Elasticsearch 6.2 to 7.8 before R20260720, and Elasticsearch below 6.2 before R20260626. Test any agent that touches these before rollout.
Two patterns cover most agent work. An allow list names exactly what the sub-agent needs, as in the S3 example above. A deny list keeps the caller's permissions minus a few dangerous actions, using Allow with NotAction, which AWS documents as having the same effect as allowing everything and denying the listed actions:
{
"Version": "2012-10-17",
"Statement": [{
"Effect": "Allow",
"NotAction": [
"ec2:TerminateInstances",
"rds:DeleteDBInstance",
"s3:DeleteObject",
"sts:AssumeRole*"
],
"Resource": "*"
}]
}
Use allow lists for autonomous sub-agents and deny lists for coding agents that act on a developer's behalf, where listing every needed action is impractical. AWS's own example removes sts:AssumeRole*, so a scoped agent cannot step into another role; keep that line in every deny list.
Governance: who may call it, and for how long
The caller needs sts:GetScopedCredentials allowed in its effective permissions; with no grant, the call is denied under the normal IAM implicit-deny model. That cuts both ways. Roles with narrow policies cannot call it until you add the action, but on our reading of that model, roles whose policies allow sts:* or every action, such as administrator roles, can call it already. Grant it deliberately to orchestrator roles, and consider an SCP that denies it everywhere else.
The sts:DurationSeconds condition key lets you cap lifetimes centrally. AWS's own example is an SCP that denies any call asking for more than 900 seconds:
{
"Version": "2012-10-17",
"Statement": [{
"Effect": "Deny",
"Action": "sts:GetScopedCredentials",
"Resource": "*",
"Condition": {"NumericGreaterThan": {"sts:DurationSeconds": "900"}}
}]
}
Short lifetimes matter more here than usual because of how revocation works. Scoped credentials inherit the parent session's aws:TokenIssueTime. The IAM console's revoke active sessions action attaches a policy that denies every credential issued before the revocation time, including all scoped copies and copies of copies, but AWS states you cannot use that key to revoke a scoped credential separately from the session it came from. If one sub-agent goes wrong, your choices are to wait out its lifetime or revoke the whole role's sessions. A 5 to 15 minute lifetime keeps the first option tolerable.
For detection, CloudTrail records GetScopedCredentials events from sts.amazonaws.com with the policy, duration and your scopedSessionDescription in requestParameters, and the new access key ID, scopedPoliciesCount and sessionTokenUtilization in responseElements. The creationDate field shows when the parent session was created, not when the scoped copy was minted. Because later events carry the parent's session ARN, match them to the issuing event on the access key ID, and put a run or task ID in the description.
How it compares with session policies, role chaining and separate roles
| GetScopedCredentials | AssumeRole with session policy | Role chaining | Dedicated IAM role per agent | |
|---|---|---|---|---|
| Identity in CloudTrail | Same principal and session name as caller | New role session | New role session | Separate role |
| Can exceed caller's permissions | No | Yes, up to the target role's | Yes, up to the target role's | Yes |
| Policy input | One scope-down policy, up to 2,048 characters, layered | One inline policy plus up to 10 managed policy ARNs, 2,048 characters combined; replaces earlier session policies | Same as session policy | Full identity policies |
| Lifetime | 1 second to caller's remaining lifetime | 15 minutes to the role's maximum (1 to 12 hours), default 1 hour | Capped at 1 hour | As AssumeRole |
| Session tags and source identity | Carried over, cannot change | Up to 50 tags; can set source identity | Can pass tags | Set at assume time |
| MFA in the request | Not supported | Supported | Supported | Supported |
| Trust policy changes | None | Role must trust the caller | Each role must trust the previous one | One role per agent type |
| Revocation | Only with the parent session | Revoke sessions per role | Revoke sessions per role | Revoke sessions per role |
| Service coverage | Five services excluded | All | All | All |
Sources: the STS credential comparison table, the policy types page, the IAM and STS quotas page and the permissions page for the new API.
The policy and lifetime rows decide most designs. Re-assuming a role with a session policy replaces earlier session policies, and role chaining caps the result at one hour. Scope-down layers never come off, and a two-hour agent task can keep a narrowed credential for its whole run if the parent session lasts that long.
Decision table: which mechanism to use
| Use | When |
|---|---|
| GetScopedCredentials | A sub-agent or tool call needs a subset of the orchestrator's AWS permissions for minutes, in the same account, and you want CloudTrail to show the original identity |
| AssumeRole into a dedicated role | The agent needs permissions the caller lacks, cross-account access, MFA, its own tags, or its own revocation |
| AssumeRole with a session policy | You already assume a role and can narrow once at that moment, and a 1 to 12 hour lifetime suits you |
| Role chaining | Rarely for scoping; the one-hour cap and replaced policies make it the weakest choice |
| Non-AWS credentials such as OAuth tokens or API keys | The tool is a third-party API; STS credentials do not apply, so use your agent platform's identity service or a secrets broker |
Use more than one. A common pattern pairs one role per agent type, assumed by the runtime with tags and source identity set, with GetScopedCredentials for every sub-agent and tool call beneath it.
Limits to plan around
- Request quota.
GetScopedCredentialshas its own default quota of 200 requests per second per account per Region, separate from the 600 requests per second shared byAssumeRole,GetSessionTokenand four other operations. AWS Support handles increases.
- Token size. Session policies, session tags and scope-down policies all add to the session token, which has its own limit. Watch
SessionTokenUtilization; a long deny list on top of heavy tags can fail withPackedPolicyTooLargeeven under 2,048 characters.
- Endpoint configuration. SDKs or proxies pinned to the global
sts.amazonaws.comendpoint will fail. Point agent runtimes at a regional endpoint.
- IAM users. Long-term access keys cannot call the API directly. That is a reason to move agent workloads off IAM user keys, not to wrap them in
GetSessionToken.
Worked example: a 400-person software company
A B2B software company with offices in Austin and London runs a support agent on AWS. Each month it handles 50,000 tickets. For each ticket the orchestrator spawns four sub-agents (search the knowledge base, read the customer's account record, draft a reply, open a follow-up task), and each gets scoped credentials for 10 minutes. Peak load is 30 tickets a minute.
| Item | Arithmetic | Monthly cost (USD) |
|---|---|---|
| GetScopedCredentials calls | 50,000 × 4 = 200,000 calls; STS has no additional charge | $0.00 |
| First CloudTrail copy of management events | Delivered to S3 at no charge | $0.00 |
| Second copy (organisation trail plus an account trail) | 200,000 ÷ 100,000 × $2.00 | $4.00 |
| Optional delivery to CloudWatch Logs | 200,000 × 2 KB = about 0.4 GB; 0.4 × ($0.25 delivery + $0.50 ingestion) | $0.30 |
| Total | $0.00 + $0.00 + $4.00 + $0.30 | $4.30 |
| Peak STS rate | 30 tickets × 4 ÷ 60 seconds | 2 requests per second, against a default quota of 200 |
The $2.00 per 100,000 management events for each copy after the first free one, and the $0.25 per GB delivery plus $0.50 per GB ingestion used in AWS's own CloudWatch Logs example, come from the CloudTrail pricing page; check your Region's CloudWatch Logs rate. The STS charge and quota come from the IAM guide. The 2 KB event size is our assumption, S3 storage is excluded, and the table counts only the minting events, not the sub-agents' own API calls.
The direct cost is a few dollars a month. The real cost is engineering time: writing scope-down policies per sub-agent type, testing against the unsupported services, and updating detection rules. In return, a prompt-injected drafting sub-agent holds credentials that cannot read other customers' records or delete anything, and that expire within 10 minutes. Our prompt injection guardrails guide explains why least privilege is the control that limits what a tricked agent can do.
What to do before re:Invent
AWS re:Invent runs from 30 November to 4 December 2026 in Las Vegas, and our re:Invent watchlist already asks teams to confirm that each agent has its own IAM identity and CloudTrail coverage. Nothing about this API depends on the event, so act now:
- By 26 November. Inventory the roles agents use and list which sub-tasks need less than the full role. Flag any agent touching MemoryDB, CloudSearch, older Neptune or older OpenSearch domains, and find roles that can already call the API through wildcards.
- By 28 November. Grant
sts:GetScopedCredentialsto one orchestrator role in a non-production account, add the 900-second SCP, update the SDK and switch that runtime to a regional STS endpoint.
- By 4 December. Ship one sub-agent with an allow-list scope-down policy, add a CloudTrail detection for
GetScopedCredentialscalls with an unexpecteddurationSecondsor a missing description, and test the revoke active sessions action end to end.
United States. NIST's glossary, citing CNSSI 4009-2022 and NIST SP 800-12 Rev. 1, defines least privilege as restricting the access of users, and of processes acting for users, to the minimum their assigned tasks need; NIST SP 800-53 Rev. 5 carries a similar entity-level definition. An agent is a process acting for a user, so per-task scoped credentials give you evidence for that control. GovCloud (US) availability means federal and defence workloads can use the same pattern.
United Kingdom. The government's voluntary Code of Practice for the Cyber Security of AI, published on 31 January 2025, asks developers and system operators in provision 2.6 to grant an AI system permissions on other systems only as its function requires, and to risk-assess them, and in provision 12.1 asks system operators to log system and user actions. Per-sub-agent scope-down policies with descriptive CloudTrail entries map onto both. This is not legal advice.
Sidebar: AWS Marketplace agent payments over x402
Also on 19 November, AWS said AWS Marketplace now supports agentic payments over the x402 protocol: agents can find and buy select products and pay per request in US dollars through AgentCore payments, with charges on the existing AWS bill and no crypto wallet needed. At general availability on 18 August 2026, AgentCore payments worked through Coinbase and Stripe Privy wallets. The developer guide still lists an embedded crypto wallet as the only instrument type for those connectors, while the new AWS Billing connector uses a service-managed instrument and the AWS Marketplace service-linked role in your account. Our AgentCore payments cost analysis covers the wallet-based fees.
For buyers, you enable the AWS Marketplace payment connector in AgentCore payments, then find listings through the AWS Marketplace connector in AgentCore Gateway. You can set spending limits, approved sellers and guardrails before agents transact, Private Marketplace policies still apply, and transactions appear in CloudTrail and Cost Explorer. AWS says the capability is available in every Region where AgentCore payments runs.
The seller guide adds detail the announcement leaves out:
| Seller-side rule | Detail |
|---|---|
| Flow | Endpoint returns HTTP 402 with a signed x402 quote; AgentCore payments pays it; AWS Marketplace returns a signed payment token; the agent retries with it |
| Region and currency | Agentic Commerce listings run in US East (N. Virginia); quotes in USD |
| Price limits | Quote amount from 0 to 100,000 USD with up to 8 decimal places; quote valid for no more than 30 days |
| Offer type | One usage-based public offer; no private offers, free trials, free pricing or concurrent agreements |
| Product model | Agentic Commerce or registration-based access, not both on one product |
| Fees and refunds | Standard Marketplace SaaS listing fees apply; refunds are invoice-level billing adjustments, not per payment |
Sellers set the price in each quote, so no per-request price is published centrally.
The link to scoped credentials is cost control. Give the agent that triggers purchases a scoped credential that allows only bedrock-agentcore:ProcessPayment, for minutes. AWS's AgentCore payments IAM guide warns that a role holding both payment-session write permissions such as CreatePaymentSession and ProcessPayment can bypass payment limits by creating sessions with larger budgets. Scoping removes session creation from the sub-agent's credential, but the parent role still holds both if you rely on scoping alone, so keep AWS's role separation as well.
How eCorpIT can help
eCorpIT is a Gurugram-based technology organisation, founded in 2021, assessed at CMMI Level 5 and MSME certified, with senior-led engineering teams working across AWS, Microsoft and Google platforms. We design and review IAM for AI agents on AWS, from role structure per agent type to scope-down policies, SCP guardrails and CloudTrail detections, as part of our cloud computing services. Talk to us at /contact-us/.
Last updated: 21 November 2026.