Sub topic 13
Delegating administration away from the management account
This chapter assumes you know IAM roles and policies, AWS Organizations basics (management account, member accounts, OUs), and the AWS CLI. It also assumes you have already created permission sets and account assignments, as covered in earlier chapters.
Why delegate
By default, the management account is where you administer IAM Identity Center. That account is also where you create the organization, close accounts, and manage billing. Service control policies (SCPs) do not restrict it. Every person who manages permission sets there gets a place in your most sensitive account.
Delegated administration moves day-to-day Identity Center work into a regular member account. The management account keeps a short list of tasks that only it can do. Your identity team signs in to the delegated account and manages users, groups, permission sets, and assignments from there.
Requirements and limits
- You need the organization instance of Identity Center. An account instance cannot be delegated.
- The delegated administrator must be a member account. The management account cannot delegate to itself.
- Only one account can be the delegated administrator for Identity Center at a time.
- Only the management account can register or deregister the delegated administrator.
- Trusted access for Identity Center must be enabled in Organizations. It is enabled when you turn on Identity Center through Organizations.
The delegated administrator can create and edit permission sets, create assignments, and provision to member accounts. It cannot act on the management account itself. It cannot assign permission sets to the management account, and it cannot change permission sets that are provisioned there. This boundary stops a delegated administrator from granting itself access to the management account.
Some details depend on your identity source. If you use Active Directory, the account that owns the directory and the account that administers Identity Center affect what you can configure. Check the current AWS documentation before you change an identity source that is already in use.
Registering the delegated administrator
Run these commands from the management account. The account ID is the member account that will become the administrator.
aws organizations register-delegated-administrator \
--account-id 111122223333 \
--service-principal sso.amazonaws.com
aws organizations list-delegated-administrators \
--service-principal sso.amazonaws.comThe second command should list account 111122223333. You can also register the account in the Identity Center console under Settings, then Management.
To change the delegated administrator, deregister the current one first, then register the new one:
aws organizations deregister-delegated-administrator \
--account-id 111122223333 \
--service-principal sso.amazonaws.comDeregistering removes the account's ability to manage Identity Center. It does not by itself delete permission sets or assignments. Roles already provisioned in member accounts keep working, but nobody except the management account can change them until you register a new administrator.
Working from the delegated account
Once registered, people with suitable IAM permissions in the delegated account see the same organization instance. The CLI calls from earlier chapters work unchanged:
INSTANCE_ARN=$(aws sso-admin list-instances \
--query 'Instances[0].InstanceArn' --output text)
IDENTITY_STORE_ID=$(aws sso-admin list-instances \
--query 'Instances[0].IdentityStoreId' --output text)
echo "$INSTANCE_ARN"
echo "$IDENTITY_STORE_ID"If list-instances returns nothing in the delegated account, check that you are in the account you registered. Also check that the instance is an organization instance and not an account instance.
The CloudFormation template from the automation chapter can be deployed here too. Deploy it in the delegated administrator account to keep infrastructure code for Identity Center out of the management account.
Permissions the administrators need
People in the delegated account need IAM permissions for Identity Center, the identity store, and read access to Organizations so they can list accounts and OUs. A workable starting point for an administrator permission set in the delegated account is below.
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Action": [
"sso:*",
"sso-directory:*",
"identitystore:*",
"organizations:DescribeOrganization",
"organizations:DescribeAccount",
"organizations:DescribeOrganizationalUnit",
"organizations:ListAccounts",
"organizations:ListAccountsForParent",
"organizations:ListOrganizationalUnitsForParent",
"organizations:ListRoots",
"organizations:ListParents",
"organizations:ListDelegatedAdministrators"
],
"Resource": "*"
}
]
}This is broader than most teams need. Narrow it by action once you know which tasks each team does. For example, a group that only assigns existing permission sets does not need sso:CreatePermissionSet.
Treat the delegated account like the management account
A delegated administrator can assign any permission set, including one with AdministratorAccess, to any member account. Anyone who controls the delegated account can therefore reach every member account. The account is as sensitive as the management account for everything except the management account itself.
Two controls reduce the risk:
- Limit who can administer. Give the Identity Center administrator permission set to one small group, and assign it only to the delegated account.
- Limit what they can assign. IAM policies can use permission set ARNs as resources for actions such as
sso:CreateAccountAssignment. You can deny assignment of your most powerful permission sets to everyone except a break-glass role. Check the action's resource types in the service authorization reference before you rely on a statement, and test it with a non-production permission set.
An SCP applies to member accounts, including the delegated account, so you can use SCPs to block risky actions there. SCPs do not apply to the management account, which is one more reason to move routine administration out of it.
What stays with the management account
Keep these tasks in the management account:
- Registering and deregistering the delegated administrator.
- Assigning permission sets to the management account and editing permission sets provisioned there.
- Enabling or deleting the Identity Center configuration.
Assign as few people as possible to the management account. A single break-glass permission set assigned to a small group is usually enough.
Common problems
| Symptom | Likely cause | Fix |
|---|---|---|
| `register-delegated-administrator` fails with an access error | Run from a member account, or trusted access is off | Run from the management account and confirm Identity Center is enabled through Organizations |
| `list-instances` is empty in the delegated account | Wrong account, or only an account instance exists | Confirm the account ID in `list-delegated-administrators` and the instance type |
| Cannot assign a permission set to the management account | Delegated administrators are blocked from the management account | Do it from the management account |
| Cannot edit a permission set | It is provisioned in the management account | Edit it from the management account, or use a separate permission set for that account |
| Registration fails because one already exists | Only one delegated administrator is allowed | Deregister the current one first |
Exercise
Exercise
Your identity team works in a delegated administrator account. A teammate tries to assign the ReadOnlyAuditor permission set to the management account and gets an error. Why, and what is the right fix?
Show answer
A delegated administrator cannot assign permission sets to the management account. Only the management account can manage access to itself, which stops the delegated account from granting itself access there. Someone with Identity Center permissions in the management account should create the assignment, and that group should stay very small.
Exercise
Why should the delegated administrator account be treated almost as carefully as the management account, even though it is a regular member account?
Show answer
A delegated administrator can create and assign permission sets, including administrator-level ones, to every other member account. Whoever controls it can reach every member account, so it needs few users, MFA, logging, and no workloads.