Sub topic 13
Delegating administration away from the management account
This chapter assumes you know AWS Organizations (management account, member accounts, OUs) and have already created permission sets and account assignments with the AWS CLI.
Why delegate
By default, only the management account can administer IAM Identity Center. That account is the most sensitive in your organization. Day-to-day work such as creating permission sets or assigning groups means people sign in there, which widens its exposure. Delegated administration moves that work to a member account you choose. The management account stays reserved for organization-level tasks.
How delegation works
You register one member account as the delegated administrator for the sso.amazonaws.com service principal. You run the registration from the management account, and the IAM Identity Center instance must be an organization instance.
aws organizations register-delegated-administrator \
--account-id 222233334444 \
--service-principal sso.amazonaws.comCheck the result with aws organizations list-delegated-administrators --service-principal sso.amazonaws.com. After registration, principals in account 222233334444 with suitable IAM permissions can call sso-admin and identitystore APIs against the same instance. The commands from earlier chapters work unchanged. The same applies to the CloudFormation template, which you can now deploy from the delegated account.
What the delegate cannot do
The delegate has limits that protect the management account:
- It cannot assign permission sets to the management account.
- It cannot modify a permission set that is already provisioned in the management account. Manage those from the management account itself.
- It cannot register another delegated administrator. Only the management account can do that.
If you need access in the management account, keep a small set of assignments there and administer them from the management account.
Choosing the delegate account
Use a dedicated account, for example a shared "identity" or "security tooling" account. Do not use a workload account. Anyone who can edit permission sets and assignments can grant themselves broad access in every member account, so treat the delegate as being as sensitive as the management account. Restrict who can sign in, require MFA, and log its activity.
You can remove the delegation with aws organizations deregister-delegated-administrator, using the same account ID and service principal. Do this only after you know which automation depends on the delegate.
Common errors
- AccessDeniedException from
sso-admin: the caller is in the delegate account but its IAM policy does not allow thesso:*actions. Delegation grants access to the instance, not IAM permissions. - Assignments to the management account fail: this is by design. Run them from the management account.
list-instancesreturns nothing: you are calling from the wrong account, or in a Region other than the one holding the instance.
Exercise
A platform engineer in the delegated administrator account tries to run create-account-assignment with the management account's ID as --target-id, and the call fails. Why, and where should the assignment be created?
Show answer
A delegated administrator cannot create assignments that target the management account. This restriction keeps the management account under tighter control. Create the assignment by signing in to the management account and running the command there.