aws_sso_list_assignments
List AWS accounts and IAM Identity Center roles available to an SSO session, including existing profile mappings and per-account errors, before generating profiles.
Instructions
List the AWS accounts and roles an IAM Identity Center login can use, after aws_login_start + aws_login_complete with ssoSession. Read-only. Each role shows profile: the existing config profile that already points at it (generated or hand-written), or null. Per-account failures come back as rolesError while the other accounts still list. If the token is missing or expired the error says to run aws_login_start with ssoSession again. Follow with aws_sso_generate_profiles to write profiles.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"ssoSession": "<ssoSession>"
},
"name": "aws_sso_list_assignments"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| accountIds | No | Only these 12-digit account IDs. Default: every assigned account. | |
| ssoSession | Yes | sso-session name logged in via aws_login_start. | |
| includeRoles | No | Default true. false returns accounts only (one AWS call). |