aws sso list-accounts
Lists all AWS accounts assigned to the user. AWS CLI reference
3 options Its page in the AWS CLI reference
Options
--access-tokenThe token issued by the CreateToken API call.--max-resultsThis is the number of items clients can request per page.--next-token(Optional) When requesting subsequent pages, this is the page token from the previous response output.