- Newest
- Most votes
- Most comments
Hello.
Normally, Account1 is not the root account that manages AWS Organizations, so you cannot check member account information using the "list-accounts-for-parent" command.
If you configure Account1 as a delegated account in AWS Organizations, you should be able to use "list-accounts-for-parent".
https://docs.aws.amazon.com/organizations/latest/userguide/orgs_integrate_delegated_admin.html
Hello,
You can use below command from member account of same organization unit for which you are trying to list all aws accounts. Just authenticate yourself with member account from same organization and you must be able to do it. Use below command: #aws organizations list-accounts
Policy: { "Version": "2012-10-17", "Statement": [ { "Sid": "VisualEditor0", "Effect": "Allow", "Action": "organizations:ListAccounts", "Resource": "*" } ] }
Hope this helps !!
Thanks, Manoj Kumar
Hi @rkmanoj, unfortunatelly this is exactly what I tried and as I written in the original question this did not work.
Seems like add account as delegated account does the trick - see @Riku_Kobayashi answer.
Relevant content
- AWS OFFICIALUpdated 3 months ago

You can create a delegation policy by following the steps in the following document: https://docs.aws.amazon.com/organizations/latest/userguide/orgs-policy-delegate.html
By setting the delegation policy as follows, you can execute "list-accounts-for-parent" on Account1.