Skip to content

fix: add pagination to getAccountRoles - #108

Merged
AndreasAugustin merged 1 commit into
Vitesco-Technologies:mainfrom
KornM:fix/account-roles-pagination
May 18, 2026
Merged

AndreasAugustin merged 1 commit into
Vitesco-Technologies:mainfrom
KornM:fix/account-roles-pagination

Conversation

@KornM

@KornM KornM commented May 18, 2026

Copy link
Copy Markdown

ListAccountRoles API now paginates results, causing some roles to be missing. Added nextToken handling to fetch all pages, matching the pattern already used in listAccounts.

Description

`ListAccountRoles` API started paginating results, causing only the first page of roles to be displayed. This resulted in missing roles for some
accounts.

Changes

Added `nextToken` handling to `getAccountRoles` to fetch all pages, matching the pattern already used in `listAccounts`.

Testing

Verified locally that all roles now appear for affected accounts."

ListAccountRoles API now paginates results, causing some roles to be
missing. Added nextToken handling to fetch all pages, matching the
pattern already used in listAccounts.

@AndreasAugustin AndreasAugustin left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚢 LGTM

@AndreasAugustin
AndreasAugustin merged commit 00072f3 into Vitesco-Technologies:main May 18, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants