Certopolis

AWS Certified Solutions Architect – Professional

IAM Identity Center identity sources and SCIM for SAP-C03

The IAM Identity Center guide allows one identity source per organization: the Identity Center directory, Active Directory through AWS Directory Service, or an external identity provider. With an external provider, SAML 2.0 handles sign-in only. Users and groups must be provisioned, automatically with SCIM or by hand, before you can assign them to accounts.

One identity source, and which instance type

The identity source defines where users and groups are managed. There are three choices and an organization can have only one at a time. The Identity Center directory is the default. An external identity provider (IdP) such as Okta or Microsoft Entra ID keeps users in that IdP. Active Directory can be self-managed or AWS Managed Microsoft AD.

Whichever source you use, access is assigned centrally. Users sign in to the AWS access portal with their existing credentials and open the accounts and roles assigned to them. The same sign-in works for the AWS CLI, which gets short-term credentials.

The instance type matters at scale. An organization instance is enabled in the AWS Organizations management account and supports all features. An account instance is bound to a single account. Multi-account permissions and access-portal sign-in to AWS accounts exist only in the organization instance. Instances in a member account or a standalone account do not have them.

Active Directory as the identity source

Identity Center connects to Active Directory through AWS Directory Service, with either AD Connector or AWS Managed Microsoft AD. You can connect only one AD Connector or one AWS Managed Microsoft AD directory at a time. For multiple domains or forests, AWS says to use AWS Managed Microsoft AD. Identity Center then works with users from the managed directory and from any domain connected to it through an AD trust.

The AD Connector or managed directory must be in the organization's management account, or in the delegated administrator account if you use one. With AWS Managed Microsoft AD, Identity Center has to be enabled in the same Region as the directory. Simple AD, which is based on Samba 4, is not supported.

Sign-in uses pass-through authentication to the source directory. Identity Center synchronizes user, group and membership information into its identity store, and no password information is synchronized. If users are spread over four or more domains, they sign in with the DOMAIN\user form of their user name.

External IdP: SAML for sign-in, SCIM for provisioning

SAML gives Identity Center no way to query the IdP for its users and groups. They have to exist in Identity Center before any assignment can be made. Signing in over SAML does not create them.

Automatic provisioning uses the SCIM v2.0 protocol. You enable it in Identity Center, which gives you a SCIM endpoint and a bearer token, and you configure the IdP with both. The IdP then sends its user and group changes. How often it sends them, and what it does when a user is removed, are controlled by the IdP. Only users and groups assigned to the IdP's application for Identity Center are provisioned. Once SCIM is set up, you can no longer add or edit users in the Identity Center console.

The alternative is manual provisioning for IdPs without compatible SCIM support. You create each user with the same user name the IdP holds, and you manage all groups by hand.

Two operational points. A SCIM access token is valid for one year, and if it expires, synchronization stops. The Identity Store APIs that change users and group membership stay available after SCIM is on, so a caller in the management or delegated administrator account can make the directory differ from the IdP. AWS suggests an SCP on the delegated administrator account to deny those actions, and notes that SCPs do not apply to the management account.

Permission sets across accounts

A permission set is a template that holds one or more IAM policies. You assign a user or group to one or more accounts with a permission set. Identity Center creates an IAM role that it controls in each of those accounts and attaches the permission set's policies to it. When you change the permission set, Identity Center updates the roles and policies to match, so a job function is defined once.

Permission sets need an organization instance with multi-account permissions enabled, which is on by default for a new organization instance.

A permission set can hold AWS managed policies, customer managed policies and an inline policy, and can set a permissions boundary. The session duration defaults to one hour and can be raised to 12 hours. A user can have several permission sets, and each appears as a role to choose in the access portal. Where you need custom trust policies, role tags or role paths, AWS points to account access manager in IAM, which assigns existing IAM roles to Identity Center users and groups.

Where the exam catches people

  • Believing two AD Connectors can be connected for two forests: Identity Center takes one directory at a time, so multiple forests need AWS Managed Microsoft AD with trusts.
  • Believing SAML sign-in creates users and groups in Identity Center: SAML cannot query the IdP, so they must be provisioned with SCIM or manually.
  • Believing an account instance can assign permission sets across accounts: multi-account permissions exist only in the organization instance in the management account.
  • Believing Simple AD can be the identity source: Identity Center does not support it.
  • Believing an Active Directory source copies passwords into AWS: authentication is passed through to the directory and no password information is synchronized.

Written from these sources

Try 3 questions on this

Pick an answer to see why each option is right or wrong.

  1. A company acquired a business that runs its own Active Directory forest on premises, separate from the company's forest. The company is rolling out AWS IAM Identity Center as the sign-in point for its AWS organization. Employees of both businesses must sign in with their existing Active Directory user names and passwords, and no password data may be copied into AWS. The directory integration must be deployed in the organization's management account. Which solution will meet these requirements?

    Right. In the game that’s Renown for your Security, Compliance, and Governance building.

    Not that one: D is right. In the game your Security, Compliance, and Governance building would lose a little Renown, and this question would come back later.

    Show the full explanation and doc quotes

    AWS Managed Microsoft AD is the option that reaches more than one forest: Identity Center works with users from the managed directory and from any domain joined to it by a trust. With trusts to both on-premises forests, every employee signs in with existing credentials through pass-through authentication, and no password data is synchronized into Identity Center.

    Written from docs.aws.amazon.com/singlesignon/latest/userguide/manage-your-identity-source-ad.html

  2. A company is moving workforce access for 200 AWS accounts in AWS Organizations to AWS IAM Identity Center. Its corporate identity provider (IdP) supports SAML 2.0 and is the source of truth for employees and groups. The company has these requirements: • A new hire added to an IdP group must gain that group's access in the right accounts with no administrator action in AWS. • Removing an employee from an IdP group must remove the access that the group gave. • A change to a job function's policies must be made once and reach every account that uses it. Which solution will meet these requirements?

    Right. In the game that’s Renown for your Security, Compliance, and Governance building.

    Not that one: B is right. In the game your Security, Compliance, and Governance building would lose a little Renown, and this question would come back later.

    Show the full explanation and doc quotes

    Permission sets, which turn one job-function definition into a managed role in every assigned account and update those roles when edited, exist only in an organization instance with multi-account permissions. The organization instance with SCIM and group-assigned permission sets meets all three requirements.

    Written from docs.aws.amazon.com/singlesignon/latest/userguide/provision-automatically.html

  3. A company federates its SAML 2.0 identity provider (IdP) directly with IAM in four AWS accounts. Each account holds its own IAM SAML provider, and the IdP's assertions map each group to job-function roles in those accounts. Over the next year the company will grow to 120 accounts in AWS Organizations, and the IdP's signing certificate is rotated every six months. The security team wants the IdP's metadata registered in AWS in only one place, so that each certificate rotation is a single change. Engineers must reach the console and the AWS CLI in every account they work in, with permissions that match their IdP group. Which combination of steps will meet these requirements? (Select TWO.)

    Right. In the game that’s Renown for your Security, Compliance, and Governance building.

    Not that one: A,C is right. In the game your Security, Compliance, and Governance building would lose a little Renown, and this question would come back later.

    Show the full explanation and doc quotes

    Permissions then come from permission sets assigned to the IdP's groups for the accounts each group needs, and Identity Center creates and maintains the matching role in each of those accounts. Engineers sign in once and choose an account and role for the console or for the AWS CLI. Direct IAM federation cannot be centralized the same way, because a role's trust policy can only name a SAML provider in the role's own account, so 120 accounts would mean 120 copies of the metadata.

    Written from docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_providers_saml.html

Ask for something