Secure architectures · 12 min
Multiple accounts with AWS Organizations and IAM Identity Center
In this lesson you will learn how multiple accounts are organized with AWS Organizations, what an SCP limits and what an RCP limits, when AWS Control Tower is the right choice and how people sign in to multiple accounts with IAM Identity Center.
AWS recommends spreading a company's workloads across multiple AWS accounts. Each account is a container for resources and an isolation boundary, that is, what happens inside one account doesn't reach the others, so a mistake in the development account, where changes are tested, doesn't touch production. For example, an online store has one account for the site customers use, another where the programmers test changes and another for the security logs; if a programmer deletes a test database by mistake, the site keeps selling.
However, with many accounts two tasks come up: putting the same rules in all of them and letting people in without creating an IAM user in each one. Those two tasks are solved by AWS Organizations, AWS Control Tower and IAM Identity Center.
AWS Organizations
AWS Organizations is the service that brings together several AWS accounts of the same company so they can be managed as a group. An organization has a management account, which creates the organization and pays the bill for all the accounts through consolidated billing, that is, in a single bill, and member accounts, which are the rest. Member accounts are grouped into organizational units (OUs), which work like folders, and the OUs hang from a root, which is the top level of the organization and has nothing to do with the root user. The policies you attach to the root or to an OU are inherited by all the accounts below it, just as what you put in a folder ends up inside its subfolders.

For example, an SCP attached to the production OU is inherited by the production accounts, but not by the development ones. The management account is kept apart, because SCPs don't affect its users or roles, and that is the reason AWS recommends not deploying workloads in it. For example, the store uses the management account only for the organization and the bill, and puts its site in a member account where the rules do apply.
SCPs and RCPs
A policy is a document with rules that say Allow or Deny. SCPs and RCPs are the two AWS Organizations policies that set a maximum, and neither of them grants permissions: they say how far permissions can go, but inside each account another policy has to grant the permission. What changes between them is who they limit:
- The service control policy (SCP), which limits what the users and roles in the member accounts can do, including the root user of each account, but doesn't stop someone from another organization who accesses your resources through a resource policy.
- The resource control policy (RCP), which limits what can be done on the resources in your member accounts, wherever the request comes from, for a list of services that AWS publishes, among them S3, STS, KMS, SQS and Secrets Manager.
Neither of them affects the management account, and SCPs don't limit service-linked roles either, which are roles an AWS service creates to do its own work in your account. Because an SCP reaches even the root user of each member account, a single SCP on the production OU can prevent anyone from deleting the logs of AWS CloudTrail, the service that records every action taken in the account, even if they are an administrator of their account. For example, the store puts that SCP in place so that, if someone breaks in to steal data, they can't erase the traces of what they did.
For an action to be allowed, every level from the root down to the account has to have an Allow in its SCPs. That is why, when you turn on SCPs, Organizations attaches the FullAWSAccess policy at every level, and if you remove it from an OU without putting in another one that allows actions, everything below it is blocked. A Deny works the other way around: it is enough to put it at a single level for all the accounts below to be limited. For example, if the store puts an SCP on the development OU that denies using any Region outside us-east-1, all the development accounts are limited to that Region, without touching each account.
SCP or RCP?
0 of 4Tap the policy that solves each requirement.
Nobody in the development accounts can launch resources outside us-east-1
No principal outside the organization can read the S3 buckets in the member accounts
Not even the root user of a member account can turn off CloudTrail
The production KMS keys can only be used from within the organization
AWS Control Tower
AWS Organizations gives you the pieces, which are the accounts, the OUs, billing and the policies, but you do the design. AWS Control Tower works on top of Organizations and orchestrates, that is, configures together, Organizations, IAM Identity Center and AWS Service Catalog to set up a landing zone, which is a multi-account environment already configured with best practices. Its Account Factory creates new accounts with that same configuration. For example, if the store starts a new team, Account Factory creates its account already with the logs, access and rules the other accounts have.
Control Tower applies controls, which used to be called guardrails and are rules that watch or limit what is done in the accounts, to an entire OU, and those controls differ in the moment when they act on an action or a resource.

Control Tower controls come in three types:
- Preventive controls, which stop the action and underneath are SCPs, RCPs and declarative policies.
- Detective controls, which let the action happen and report it, and underneath are AWS Config rules.
- Proactive controls, which check a resource before AWS CloudFormation creates it, and underneath are CloudFormation hooks.
AWS Config is the service that checks how your resources are configured, and AWS CloudFormation is the one that creates resources from a template. For example, so that none of the store's S3 buckets is left open to the public, a preventive control stops anyone from opening one, a detective control flags the ones already open and a proactive control rejects the template that tries to create an open one.
Which type of control?
Security wants to know which accounts have S3 buckets with public read access, without blocking anyone yet. Which type of AWS Control Tower control does it use?
IAM Identity Center
IAM Identity Center is the service AWS recommends for the people in your company to sign in to multiple accounts, with a single user and through an access portal, which is a web page where each person sees the accounts they can get into. Without it, each employee would have a different user and password in each account.

An employee signs in to the access portal with her user from the identity source, chooses an account and a role, and receives temporary credentials. Identity Center creates those roles in each account from permission sets, which are templates: when you assign a group, a permission set and an account, Identity Center creates the role in that account and maintains it. That way, nobody needs an IAM user in each account. For example, the store creates a read-only permission set and assigns it to the support group in the site's account, and each support person signs in through the portal with their usual user.
Each organization has a single identity source, which is the place where the company's users live. That source can be an external provider such as Okta or Microsoft Entra ID, your Active Directory (on premises or AWS Managed Microsoft AD) or Identity Center's own directory, but Simple AD is not accepted as a source.
Identity Center is for your workforce. If the people signing in are the customers of your web or mobile application, the service is Amazon Cognito. For example, the store's employees sign in to AWS through Identity Center, and shoppers sign in to the store's app with Cognito.
In a new experience account
In a new experience account, which is the one you open with Google, GitHub, Apple, Amazon or email, your account is already an organization, but AWS manages it. Each project is a member account with SCPs and RCPs that you can't change, such as the SCP that denies almost everything outside us-east-2, us-east-1 and us-west-2. Organizations, Control Tower and IAM Identity Center can't be configured without turning on the advanced features, so to practice with them you need a full account. For example, in that account you can see how an SCP stops you from creating resources in another Region, but you can't write your own SCP.
How does it show up on the exam?
Multi-account questions usually ask for the way to apply a rule to many accounts or to let a group of people in, and these phrases in the question point to the answer:
| If the question says | The answer |
|---|---|
| "Quickly set up a multi-account environment with best practices" | AWS Control Tower |
| "Prevent a Region from being used in all accounts" | An SCP with the aws:RequestedRegion condition, which checks the Region of the request |
| "Employees with their corporate directory user in multiple accounts" | IAM Identity Center |
| "Users of a mobile application" | Amazon Cognito |
| "A single bill" | Organizations consolidated billing |
For example, if the question says the store wants its employees to sign in to all its accounts with their work email user, the answer is IAM Identity Center.
Review question
A company has 30 accounts in AWS Organizations. It wants no user or role in the accounts of the production OU to be able to delete AWS CloudTrail trails, not even the administrators of each account. What does an architect do?
Next
- The Security best practices in IAM, in the AWS documentation, especially the sections on federation and guardrails across multiple accounts.
- The Solutions Architect practice exams at /examenes.