After setting up AWS Organizations, I created a member account with a custom IAM role name. I've now forgotten the role name used and I'm unable to assume role as root into that account. I need to create IAM users in the member account but without the ability to assume role using the custom OrganizationAccountAccessRole it seems I'm unable to.
I've tried getting access by
- Using the member account root user but it doesn't have permissions to IAM
- Signing in to member account using AWS SSO user with
IAMFullAccessandAdministratorAccesspolicies attached to the policy set but user cannot access IAM. - Attempting to describe member account using the master account admin user but the role isn't there
At this point, I'm thinking the only way out is to recreate the member account. Please tell me there is a better way.
UPDATE: - Found that 1 & 2 didn't work because of a restrictive Service Control Policy (SCP) on the account which didn't include IAM access permissions.
EventName:CreateAccountand I was able to see the role specified in therequestParameters. Thanks a lot. - Shawlz