- Learn
- Computer Science & IT
- Information Technology
- Cloud Architecture and Administration
- Cloud Identity and Access Management
Cloud Identity and Access Management: Governance at Scale
IntermediateLesson 1 of 8 in Cloud Architecture and Administration Course
What you will learn
- Set up the identities that work in a cloud environment, group people for access, and give applications and services their own identities with temporary credentials.
- Tell human and workload identities apartIdentify the kinds of identity a cloud environment holds, where each kind is stored, and which identity type fits a person, an application or a cloud service.
- Manage users and groups in a cloud directoryCreate and maintain users and groups, choose between assigned and dynamic membership, invite external users and handle licenses and self-service password reset.
- Use roles and temporary credentialsExplain how a role is assumed, write the trust that controls who can assume it, and use temporary credentials for cross-account access and for workloads.
- Tell human and workload identities apart
- Organize many accounts, subscriptions and projects into a hierarchy that groups them for access, policy and billing, and keep control of the hierarchy's most powerful levels.
- Compare the resource hierarchies of the major cloudsMap the levels of the AWS, Azure and Google Cloud hierarchies, state what each level is for and work within the limits that shape them.
- Design a multi-account landing zoneDecide when to give workloads their own accounts or subscriptions and lay out a hierarchy that groups them by the governance they need.
- Keep control of the top of the hierarchyProtect the most powerful accounts and scopes, delegate day-to-day administration, keep emergency access ready and log every change to the hierarchy.
- Compare the resource hierarchies of the major clouds
- Read and write the policy documents and role definitions that grant permissions, assign them at the right scope and work out what a principal can actually do.
- Read and write policy documents and role definitionsInterpret an AWS JSON policy, an Azure role definition and a Google Cloud role, and choose between identity-based and resource-based policies.
- Assign roles at the right scopeCombine a principal, a role and a scope into an assignment, choose the narrowest scope that does the job and apply least privilege at scale.
- Work out effective accessCombine inherited grants, allows and denies to decide whether a request succeeds, and troubleshoot access-denied errors step by step.
- Read and write policy documents and role definitions
- Connect an organization's identity provider to its cloud environments so that people and workloads sign in once and receive access through trusted, short-lived tokens.
- Set up federation with an identity providerExplain the trust between an identity provider and a cloud, follow a SAML or OpenID Connect sign-in step by step, and keep users and groups in sync.
- Design single sign-on across many accounts and workloadsGive people one sign-in to many accounts and subscriptions, give pipelines federated identities instead of keys, and bring external partners in safely.
- Set up federation with an identity provider
- Use organization-wide policies to set limits that account and subscription administrators can't bypass, and choose between preventive, detective and corrective controls.
- Set permission guardrails with AWS organization policiesWrite and attach service control policies and resource control policies that cap what member accounts can do, and predict their effect at each level of the organization.
- Enforce resource rules with Azure PolicyBuild policy definitions and initiatives, assign them at a scope with parameters and exclusions, choose effects and bring existing resources into compliance.
- Choose and combine guardrails across cloudsCompare preventive, detective and corrective guardrails, apply Google Cloud organization policy constraints and pick the right control for a requirement.
- Set permission guardrails with AWS organization policies
- Prevent accidental deletion or change with resource locks, and design a tagging strategy that is applied consistently and enforced by policy.
- Protect resources with locks and deletion protectionApply Azure resource locks correctly, predict their side effects and use the equivalent protections in other clouds.
- Design and enforce a tagging strategyChoose a consistent set of tags, apply them at scale and enforce them with policy so that resources can be found, owned, automated and charged correctly.
- Protect resources with locks and deletion protection
Cloud Identity and Access Management study guide
1Organize users, groups and workload identities
Every cloud operation needs an accountable caller. Human accounts, directory groups and workload identities let you grant access without sharing passwords or storing cloud keys in code. Learn where each identity lives, how membership and employment changes affect access, and how a trusted caller obtains a temporary role session. These choices determine what administrators will later find in an audit log.
1.1 Tell human and workload identities apart
A cloud request is made by a specific principal: the user, role session or application identity whose credentials accompany it. Start an access design by identifying that caller. A person's name on a support ticket may differ from the role session recorded in the cloud audit log.
Choose the identity for the caller
Human identities belong to employees, contractors and partners. Workload identities belong to applications, scripts, virtual machines and pipelines. Give each person a named identity and each application or job an accountable workload identity. A group collects access for its members; the group never signs in itself.
| Platform | Human identity store | Typical workload identity |
|---|---|---|
| AWS | IAM Identity Center across accounts; IAM users within one account | IAM role attached to compute |
| Azure | Microsoft Entra ID tenant | Managed identity or application service principal |
| Google Cloud | Cloud Identity or Google Workspace | Service account |
An Entra tenant is a directory. A service principal represents an application in that directory. A system-assigned managed identity belongs to one Azure resource and is deleted with it. A user-assigned managed identity is a separate resource that can be attached to several resources. Choose between them by the lifetime and sharing the application needs.
Keep credentials out of application code
An AWS IAM user can have a password and long-lived access keys. For people, prefer federation or IAM Identity Center and temporary sessions. For cloud-hosted workloads, attach an IAM role, managed identity or service account. The platform obtains and renews short-lived credentials; the code requests access through that identity without a stored key file.
For an external pipeline, use workload identity federation. Its own platform supplies a token that the cloud exchanges for short-lived credentials. A shared developer password or downloaded cloud key would require separate distribution, rotation and removal.
Work through an identity inventory
A company has 300 employees, 12 contractors, a virtual-machine web application and an external nightly backup job.
- Create named directory users for employees and contractors. Put contractors in a separate access group with an access end date.
- Give the web application a workload identity attached to its compute resources. Grant that identity the application's resource permissions.
- Federate the backup pipeline's identity and restrict the trust to that job. Grant its cloud identity only backup access.
- Record an owner for each workload identity so someone reviews it when the application changes or closes.
The two workloads need no stored long-lived cloud keys or application secrets. Their actions remain distinguishable from human administration.
Handle changes in employment
The joiner, mover, leaver process creates a person at arrival, changes group membership when their job changes and disables them on departure. Directory groups make these changes manageable across many accounts. Disabling the directory account blocks new sign-ins once effective, but previously issued sessions can last until expiry. For an urgent departure, also revoke sessions using the platform's supported controls.
Protect each AWS account's root user with MFA and reserve it for tasks that require it. Daily administration belongs to named, limited identities so the most powerful credentials stay out of routine work.
Key Takeaways
- Identify the principal that actually sends a request.
- Use named human identities and accountable workload identities.
- Attach platform-managed identities to cloud workloads; federate external workloads.
- Choose managed identity lifetime to fit its resource.
- Disable leavers and address their existing sessions.
1.2 Manage users and groups in a cloud directory
Directory groups turn repeated permission changes into membership changes. If 40 developers need the same access in 6 accounts, direct assignments require 240 links. Assigning one group in those 6 accounts requires 6 links; a new developer then needs one membership change.
Select the group and membership type
In Microsoft Entra ID, a security group supports resource access and can hold users, devices, service principals and other groups. A Microsoft 365 group supports collaboration through shared mail, calendars and files, and holds users. Check nesting support in the service consuming the group. Group-based licensing processes direct user members, not users reached through nested groups.
Assigned membership is maintained by administrators. Dynamic user and dynamic device membership are maintained by rules. For example:
user.department -eq "Sales"
This rule selects users whose department is Sales. Administrators cannot manually add an exception to the dynamic membership list; they must change the rule or the source attribute. Dynamic membership needs Entra ID P1 licensing for the users covered.
The rule is an access decision. If a person can edit their own department, they may be able to put themselves in a privileged group. Use attributes controlled by HR or administrators, and use assigned membership where the privilege demands individual approval.
Keep user properties and licenses consistent
The user principal name, such as maria.lopez@contoso.com, is the sign-in name. Display name, department, job title and manager help identify and organize users. For direct license assignment, set usage location first because service availability can differ by location. Group-based licensing can use the tenant’s location when the user has none set; explicitly set the correct user location for staff in different locations.
Licenses can be assigned to users or groups. Group-based licensing applies a group's licenses to its members and removes that group's entitlement when membership ends. A user can retain the entitlement through another assignment, so check all paths when a license remains after a membership change.
Bring in partners and support password recovery
Entra B2B collaboration usually invites partners as guests who authenticate with an existing external account. The userType values "Member" and "Guest" describe the user's organizational relationship and default directory access. They do not determine the authentication source: external members and internal guests can exist. Put partners in dedicated groups, give access an end date and review it regularly.
Self-service password reset (SSPR) lets users reset a password after proving identity through methods registered earlier. Enable it for a selected group or all users, or leave it disabled. Configure whether one or two methods are required. Administrator accounts follow a stricter built-in reset policy.
Apply the model across clouds
An AWS IAM group contains IAM users from one account. It cannot contain groups or appear as a policy principal. Use IAM Identity Center or external IdP groups for multi-account workforce access. A Google group can receive Google Cloud roles as a principal.
At scale, create and update accounts through bulk CSV import, scripts or synchronization. For synchronized identities, make changes at the authoritative source. A manual cloud edit can be overwritten when the next sync restores the source value.
Key Takeaways
- Use groups to reduce repeated assignments.
- Match assigned or dynamic membership to the access approval process.
- Protect attributes used by access-granting rules.
- Set usage location before assigning licenses.
- Keep guest relationship separate from authentication source.
- Manage synchronized identities at their authoritative source.
1.3 Use roles and temporary credentials
An AWS IAM role has permissions but no long-term credentials. A trusted caller assumes it, and AWS Security Token Service (STS) issues an access key ID, secret access key and session token. All three parts belong to the temporary session.
Separate trust from permission
A role's trust policy controls who may obtain its credentials. Its permissions policies control what those credentials may do. Successful assumption does not mean the role can access a resource: a role can trust a caller and still have no useful permissions.
The assumption action depends on the caller:
| Caller path | Trust policy action |
|---|---|
| AWS principal | sts:AssumeRole |
| SAML federation | sts:AssumeRoleWithSAML |
| OIDC web identity | sts:AssumeRoleWithWebIdentity |
A trust policy is attached to the role itself, so the role is its implied resource. Name specific trusted accounts or roles and add the required conditions. An unrestricted "AWS": "*" principal opens the trust to AWS principals across accounts whose own policies permit assumption.
Build a cross-account path
Suppose a source role in account 111111111111 needs to read an archive in 222222222222.
- Create the archive-reading role in the target account.
- In its trust policy, name the source role or source account.
- Attach target-role permissions for the archive tasks.
- Give the source caller permission to call
sts:AssumeRoleon the target role's ARN. - Make the assumption request, then use the returned session credentials for archive requests.
Trusting arn:aws:iam::111111111111:root delegates trust to the source account; it does not mean only its root user can assume the role. The source account's policies decide which callers can use that trust.
Keep sessions within their limits
An ordinary assumed-role session defaults to 1 hour. The caller can request 15 minutes up to the role's configured maximum, which an administrator sets between 1 and 12 hours. With a 4-hour maximum, a 6-hour request fails and a 2-hour request fits. When temporary role credentials assume another role, role chaining caps the new session at 1 hour, even if that role allows longer sessions.
Use the same idea for services and partners
An EC2 instance profile delivers and renews role credentials for an instance. A Lambda execution role supplies its function's permissions. Azure managed identities and Google Cloud attached service accounts serve a similar purpose. Google Cloud also supports service account impersonation: Service Account Token Creator permission lets an authorized caller obtain short-lived tokens, with an audit trail linking caller and service account.
A service-linked role is predefined for an AWS service to act on your behalf. Its service controls its permissions, and SCPs do not restrict it.
For a third-party vendor, require its issued customer-specific external ID through sts:ExternalId in the role trust. This addresses the confused deputy problem: another customer must not be able to persuade that vendor to use your role. The external ID supplements the trusted vendor principal; it is not a replacement for naming that principal.
Key Takeaways
- Trust controls role assumption; permissions control actions afterward.
- Cross-account role access needs target trust and source assumption permission.
- Role chaining has a 1-hour session limit.
- Use attached roles or impersonation to obtain temporary credentials.
- Require a vendor-issued external ID for third-party role access.
2Structure accounts and subscriptions in a management hierarchy
A hierarchy makes one governance decision reach many workloads. Accounts, subscriptions and projects provide working boundaries; OUs, management groups and folders collect those boundaries under shared rules. Learn how to arrange them into a prepared landing zone, predict the effect of moving a container and protect the administrators who control the top of the tree. The provider differences matter when you trace inherited access.
2.1 Compare the resource hierarchies of the major clouds
Cloud hierarchies put shared rules above the resources they govern. First identify the containers, then identify what flows down from them. Azure and Google Cloud inherit permission grants as well as policies. AWS organization roots and OUs carry permission guardrails; IAM and resource policies grant access inside accounts.
Compare the levels
| AWS | Azure | Google Cloud |
|---|---|---|
| Organization root | Tenant root management group | Organization |
| Organizational units | Management groups | Folders |
| Accounts | Subscriptions | Projects |
| Resources | Resource groups, then resources | Resources |
These are working comparisons, not exact matches. AWS identities can live inside an account. Entra identities live in the tenant that subscriptions trust. Azure resource groups group resources by lifecycle; AWS resource groups are views based on tags or queries.
An AWS organization has one root and one management account. Other accounts are member accounts. An account belongs directly to the root or to one OU, and OUs can be nested five levels below the root. Accounts provide strong isolation: access across them requires explicit grants.
In Azure, each management group and subscription has one parent. Management groups can be six levels below the tenant root, excluding the root and subscription levels. A subscription trusts one Entra tenant and holds resource groups. New subscriptions enter the tenant root management group by default unless a different default management group is configured.
Google Cloud organizations are tied to Cloud Identity or Workspace. Folders group projects and can nest ten levels deep. A project contains resources, enables APIs and carries service quotas; linking it to a billing account enables billing for its billable services.
Group Azure resources by lifecycle
Every resource belongs to one resource group, and resource groups cannot nest. Their location records where group metadata is stored. It does not force every resource into that region.
Place a web application and resources managed with it in a group when they are deployed and retired together. Deleting the group deletes its resources, so a shared database with a different lifetime belongs elsewhere. Region requirements should be enforced on the resources through policy.
Trace a path before changing it
Consider Tenant root → Contoso → Landing zones → Corp → subscription corp-app-01. Contoso, Landing zones and Corp use three of the six available management-group levels. Policies assigned at each applicable ancestor reach resources in the subscription.
A move changes that path. Before moving a subscription, compare old and new inherited roles and policies. A workload can lose required access, receive broader access or become subject to a conflicting rule. In AWS, moving an account changes its inherited OU guardrails; it does not copy permissions from another account.
Supported Azure resources can move between resource groups or subscriptions, but a ReadOnly lock on the source or destination group blocks the move. Check move support and inherited controls before scheduling the change.
Key Takeaways
- Map each provider hierarchy before tracing inherited controls.
- AWS OUs inherit guardrails, while Azure and Google Cloud also inherit grants.
- Azure resource groups contain resources with a shared lifecycle.
- A container move changes the controls inherited from its parent.
2.2 Design a multi-account landing zone
A landing zone prepares the environment before teams deploy workloads. It includes the hierarchy, identity and single sign-on, central logging, security services, shared networking and guardrails. Creating an empty set of accounts alone leaves teams to build these foundations differently.
Design around governance needs
Separate production from development to limit the blast radius of a mistake or compromise. Separate accounts or subscriptions also separate quotas, ownership and controls. Group the containers according to the rules they share: production, non-production, sandbox or a workload class with special requirements.
A department chart is a weak foundation for this design. If every department has production and development accounts, putting departments at the top forces the same production rule to be repeated. Grouping by governance needs lets one assignment reach every production account, including new ones.
Keep the tree shallow enough to inspect. Each added level creates another place for policies or assignments that an administrator must trace during an access problem.
Allocate shared services and workloads
A useful AWS layout separates these areas:
- A Security OU holds the log archive and security tooling accounts.
- An Infrastructure OU holds shared networking and shared services.
- A Workloads OU has Production and Non-production children.
- A Sandbox OU limits experiments.
- A Suspended OU restricts accounts being closed with a deny-all policy.
The management account runs no workloads. Central logs belong in an account workload teams cannot alter.
In Azure, put an intermediate organizational management group below the tenant root. Under it, Platform contains identity, management and connectivity subscriptions; Landing zones holds Corp and Online branches for different connectivity needs; Sandbox and Decommissioned hold their own controls. Put common organizational policy at the intermediate group, with workload-specific rules lower down.
AWS Control Tower supplies a managed landing-zone approach. Microsoft's Cloud Adoption Framework describes Azure landing zones, and Google Cloud's enterprise foundation blueprint provides a comparable foundation design.
Count a complete design
A company has 3 products, each with production, staging and development. It needs one account for each product-environment pair:
Add 3 shared member accounts for networking, logs and security tooling to obtain 12 member accounts. Add the management account to obtain 13 accounts overall. The 3 production workload accounts share the Production OU; the 6 staging and development accounts share Non-production. An account quota increase may be needed as the organization grows.
Make every new container start correctly
Account vending or subscription vending is a repeatable creation process. It places the container under the correct parent, enables logging, creates SSO assignments, applies required metadata and sets the baseline controls. AWS Control Tower Account Factory and infrastructure pipelines can supply this process.
Define who owns the new account and which workload class it belongs to before vending it. A manually created account that bypasses the baseline can remain invisible to central logging or lack the policies its production workload requires.
Key Takeaways
- A landing zone includes identity, logging, networking and governance.
- Group containers by shared governance requirements.
- Separate workload environments to limit blast radius.
- Keep workloads out of the AWS management account.
- Count shared and management accounts as well as workload accounts.
- Use vending to apply the baseline consistently.
2.3 Keep control of the top of the hierarchy
Changes near the top of a cloud hierarchy can affect every workload below. Treat root-scope access, account movement and guardrail administration as platform duties with separate owners, strong authentication and a central audit trail.
Protect the highest scopes
AWS SCPs do not restrict the management account. Give it a small administrative audience, protect access with strong MFA and keep workloads elsewhere. A delegated administrator lets a member account administer a supported organization-wide service, such as security tooling. That account remains subject to SCPs.
In Azure, a role assignment at the tenant root management group reaches every subscription beneath it. No user has root management-group access by default. Keep root assignments to the minimum needed and put normal organization-wide rules on an intermediate management group.
Distinguish directory power from resource power
Microsoft Entra roles administer the directory: users, groups and application registrations. Azure roles administer cloud resources. Global Administrator is an Entra role; Owner and Contributor are Azure resource roles.
A Global Administrator has no subscription access just because of that directory role. They can elevate access to become User Access Administrator at the root scope, then manage resource access. Monitor elevation and remove it when the task finishes. Leaving elevated access active creates a persistent route from directory administration into resource access management.
Prepare emergency access
Keep two cloud-only Entra emergency administrator accounts that do not depend on federation or one person's phone. If the normal IdP connection fails, these accounts provide an independent recovery path. Secure their credentials, test access on a schedule and alert on every use.
For AWS, protect root access with MFA. With centralized root access management, the organization can remove root credentials from member accounts and handle supported root tasks centrally. Protect the management account's own root access separately.
Control moves and delegation
Workload teams need enough rights to operate their resources. The platform or security team owns the hierarchy, access rules and guardrails. Delegation must not let a workload owner remove the rule that governs their workload.
Moving an Azure subscription requires these permissions on the subscription:
Microsoft.Management/managementGroups/writeMicrosoft.Management/managementGroups/subscriptions/writeMicrosoft.Authorization/roleAssignments/writeMicrosoft.Authorization/roleAssignments/deleteMicrosoft.Management/register/action
Owner includes them. Management-group write permission is also needed on the current and destination parents, with the root-parent exemption. These checks protect both sides of a move that can remove inherited restrictions.
An AWS account move is performed by an authorized principal in the management account. Delegated organization policy administration does not confer the right to move accounts.
Preserve evidence outside workload control
Send CloudTrail organization events to the log archive account. Collect Azure activity logs for management groups and subscriptions and Google Cloud Audit Logs for organization administration. Alert on root sign-ins, access elevation, account movement and guardrail edits. The team that can change a workload should not be able to erase the evidence of its governance changes.
Key Takeaways
- Limit high-scope administrators and keep their activity auditable.
- Delegated AWS administrators remain inside organization guardrails.
- Entra directory roles and Azure resource roles are separate.
- Test independent emergency access and alert on its use.
- Restrict container moves because they change inherited governance.
3Grant permissions with policies, roles and scopes
A permission document describes possible actions; a scoped assignment puts them into use. Read policy statements and role definitions, select access for a concrete task and combine all the grants and restrictions that reach a request. The same broad role can behave differently because of its scope, a resource policy, an inherited deny or a boundary. A methodical access check finds the relevant layer before changing permissions.
3.1 Read and write policy documents and role definitions
Permissions name actions on resources. Providers collect them into AWS policies, Azure role definitions and Google Cloud roles. Read the action alongside its resource, exclusions and conditions.
Read an AWS policy
An AWS policy uses Version: "2012-10-17" and a Statement list. Each statement has Effect and Action. Identity-based statements name a Resource; optional Condition entries narrow when they apply. Resource-based policies also identify a Principal. A role trust policy omits Resource because the attached role is the resource.
This policy lets its holder list an archive bucket and read its objects:
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Action": "s3:ListBucket",
"Resource": "arn:aws:s3:::reports-bucket"
},
{
"Effect": "Allow",
"Action": "s3:GetObject",
"Resource": "arn:aws:s3:::reports-bucket/*"
}
]
}
ListBucket applies to the bucket ARN; GetObject applies to object ARNs ending in /*. Neither statement permits upload or deletion. Adding an explicit Deny for s3:DeleteObject also blocks deletion if another applicable policy allows it.
An identity-based policy attaches to a user, group or role. A resource-based policy, such as a bucket policy, attaches to the resource and names who may access it. AWS managed policies are maintained by AWS; customer managed policies are reusable documents you maintain; inline policies are embedded in one identity and deleted with it.
A permissions boundary caps what identity-based policies can grant without granting anything itself. Require a boundary on developer-created roles to limit delegated administration. Within one account, a resource policy naming a user or role session directly can grant beyond an implicit boundary limit; explicit denies still win.
Read Azure roles
An Azure role definition lists Actions for management operations, DataActions for data operations and their exclusion lists, NotActions and NotDataActions. AssignableScopes says where the role is available for assignment; it does not create an assignment.
NotActions subtracts operations from that role's allowed set. It is not an overriding deny, so a second role can grant the excluded action.
| Azure role | Main purpose |
|---|---|
| Owner | Manage resources and grant access |
| Contributor | Manage resources without granting access |
| Reader | View resources |
| User Access Administrator | Manage access |
| Role Based Access Control Administrator | Manage role assignments, optionally with conditions |
Prefer service-specific roles when they fit, such as Virtual Machine Contributor.
Select Google Cloud roles
Google Cloud roles contain permissions such as storage.objects.get. Predefined roles such as roles/storage.objectViewer are maintained for particular services. Custom roles hold your selected permissions and are defined at organization or project level, not folder level. Broad basic roles include the legacy Owner, Editor and Viewer roles; avoid using them as a production shortcut.
Create a custom policy or role when no built-in choice fits the task. Maintain it as service operations change. Broad wildcards save editing effort but can grant new actions added later without a fresh access review.
Key Takeaways
- Read action, resource and conditions together.
- Match S3 bucket actions and object actions to their different ARNs.
- Separate identity policies, resource policies and permission boundaries.
- Azure
NotActionsremoves a grant from one role; it does not deny it globally. - Prefer service-specific roles to broad built-in roles.
- Custom roles require ongoing maintenance.
3.2 Assign roles at the right scope
A role definition describes permissions. An assignment applies them to a caller at a place in the hierarchy. To review access, write down all three parts: principal, role and scope.
Match each provider's assignment model
In Azure, assign a role to a user, group, service principal or managed identity. The scope can be a management group, subscription, resource group or resource. It includes everything beneath that scope. Deleting the assignment removes that grant, although other direct or inherited grants may remain.
In Google Cloud, an allow policy on an organization, folder, project or resource contains role bindings. A binding gives one role to specified principals and may include a condition. For example, bind roles/compute.viewer to group:ops@example.com on one project.
In an AWS account, attach identity policies to users, groups or roles. Across accounts, an IAM Identity Center assignment joins a user or group, a permission set and an account. The permission set supplies the role template for that account.
Choose the minimum useful access
Work from the job to the assignment:
- List the operations the caller must perform.
- Select the smallest built-in role that covers them; create a custom role if none fits.
- Locate the smallest scope containing all target resources.
- Assign to a group or workload identity.
- Set an expiry or review date for temporary access.
A web operations group needs to restart and resize virtual machines in rg-web-prod. Virtual Machine Contributor on that resource group covers the task. Contributor on the subscription adds control over unrelated services and groups. A resource-group assignment also covers new virtual machines placed in that group, so the lifecycle and ownership of the group matter.
Least privilege combines narrow actions, narrow scope and limited time. Microsoft Entra Privileged Identity Management supports the time dimension: an eligible user activates privileged access for a limited period with a justification. Eligibility alone is not an active administrative session.
Separate operations from granting access
Creating an Azure role assignment requires Microsoft.Authorization/roleAssignments/write at the relevant scope. Owner, User Access Administrator and Role Based Access Control Administrator can provide that permission. Contributor does not. A resource team can therefore operate resources without being able to grant its own members additional access.
When someone reports an error, check the missing action before increasing the role or scope. Assigning Owner across a subscription can hide the original mismatch while opening every current and future resource group to that principal.
Inspect inherited assignments
Use Access control (IAM) at the target Azure scope to see assignments made there and those inherited from parents. Check access gathers the assignments that reach a principal, including group-derived access. Google Cloud's project IAM view similarly shows local and inherited bindings.
Record why a broad assignment exists and who reviews it. The effective scope includes descendants added later, so an assignment that fit a small environment can become much broader as the hierarchy grows.
Key Takeaways
- An assignment joins a principal, role and scope.
- Select permissions from the task and scope from the target resources.
- Use groups and workload identities as stable assignment targets.
- Limit temporary privilege with expiry, review or activation.
- Contributor cannot grant Azure resource access.
3.3 Work out effective access
Effective access is the result of every applicable grant and restriction. A role name on its own cannot establish whether a request succeeds. Identify the actual principal, requested action and target resource, then trace the full policy path.
Combine inherited grants
Azure RBAC adds permissions from all assignments that reach a principal, including group memberships. Reader at management group Corp plus Contributor at rg-data gives Contributor management rights inside that group and Reader rights elsewhere below Corp. Adding Reader inside rg-data cannot remove the inherited or direct Contributor grant.
Google Cloud similarly combines allow policies on the resource and its ancestors. An inherited allow must be removed where it was granted or blocked by an applicable deny policy. Google Cloud IAM deny policies at organization, folder or project scope override allow policies for supported permissions.
Azure deny assignments also override grants. Azure creates them for features such as managed applications and deployment stacks; administrators cannot create arbitrary deny assignments directly. Azure Policy and locks provide other controls for the requirements they support.
Evaluate AWS policy layers
Start with no permission: an unallowed request is implicitly denied. An explicit deny in an applicable policy defeats an allow. Organization guardrails must permit the operation, and an identity or resource policy must grant it. Boundaries and session policies further limit identity-based grants.
Consider a role with s3:* on arn:aws:s3:::logs-bucket/*, a boundary allowing GetObject and PutObject, and an SCP denying DeleteObject. Assume no other grants or restrictions apply.
| Request | Result | Reason |
|---|---|---|
| Read an object | Allowed | Identity grant and boundary include it |
| Upload an object | Allowed | Identity grant and boundary include it |
| Delete an object | Denied | SCP explicitly denies it |
| List the bucket | Denied | Bucket ARN and action are absent from the needed grants |
A boundary grants nothing. Within the same account, a resource policy naming an IAM user or a role session directly can grant beyond an implicit omission in a boundary or session policy. Explicit denies still apply. A policy naming a role ARN has different evaluation details from one naming its session; inspect the precise principal.
For most same-account services, identity and resource policy allows combine. Cross-account resource access needs permission from the caller's account and trust from the resource account. Some services have additional policy requirements, such as KMS key policies.
Diagnose an access failure
- Read the error for the action and resource.
- Identify the caller in the request or audit log; it may be an assumed role session.
- Collect grants and restrictions at the target and every relevant ancestor.
- Look for explicit denies, then missing allows, unmatched resources or failed conditions.
- Use AWS policy simulation and Access Analyzer, Azure Check access or Google Cloud Policy Troubleshooter to test the path.
Allow for policy propagation after a change. Repeating a broader assignment immediately can create needless access before the first update has taken effect.
Key Takeaways
- Calculate effective access from all applicable grants and restrictions.
- A narrower Reader assignment cannot cancel an inherited Contributor grant.
- Explicit denies override applicable allows.
- AWS boundaries cap identity grants but do not grant permissions.
- Check the exact resource-policy principal when evaluating boundary exceptions.
- Troubleshoot the actual caller, action and resource before changing access.
4Federate identities and provide single sign-on
An organization can keep sign-in at its existing identity provider while using many cloud accounts. Federation establishes trust in signed identity evidence, and provisioning keeps users and groups current. Build the connection from token validation through account assignments, then extend it to external pipelines and partners. Session lifetime and deprovisioning determine how quickly access ends when an identity should stop working.
4.1 Set up federation with an identity provider
Federation lets a cloud trust an identity provider (IdP) to authenticate users. The user proves identity at the IdP; the cloud receives signed evidence and applies its own authorization rules. The cloud does not need the user's IdP password.
Establish and verify the trust
For SAML, exchange metadata that identifies the IdP sign-in URL and signing certificate and the cloud's service-provider identifier and reply URL. These values tell each side where a sign-in belongs and how to verify the response.
A service-provider-initiated SAML sign-in follows this path:
- The user opens the cloud console.
- The cloud redirects the browser to the IdP.
- The user authenticates there, including MFA.
- The IdP returns a signed XML assertion with identity attributes, audience and validity period.
- The cloud checks the signature, audience and time window, maps attributes to access and starts a session.
For an IdP-initiated sign-in, the user starts at the IdP's app portal. The redirect from the cloud is skipped; validation is still required.
Compare token formats
| Protocol | Evidence of identity | Common cloud use |
|---|---|---|
| SAML 2.0 | Signed XML assertion | Workforce console federation |
| OpenID Connect | Signed ID token, usually a JWT | Modern applications and workload federation |
OpenID Connect (OIDC) adds an identity layer to OAuth 2.0. Its ID token contains claims including issuer (iss), subject (sub), audience (aud) and expiry (exp). Verify the signature using the IdP's published keys and check that the claims match the configured trust. A valid signature alone does not establish that the token was intended for your cloud application.
Map identities and keep accounts current
Attribute mapping connects IdP information to cloud access. A group named "cloud-dba-prod" can map to DatabaseAdmin in the production data account. In Azure, an Entra group receives resource role assignments directly.
Federation handles sign-in; provisioning handles account records and membership. SCIM 2.0 lets an IdP create, update and deactivate users and groups in a connected service. Just-in-time provisioning creates a user on first sign-in but usually does not remove leavers. Without deprovisioning, stale cloud records and memberships remain after staff changes.
For hybrid identity, Entra Connect Sync or Entra Cloud Sync copies on-premises directory identities into Entra ID. Password hash synchronization, pass-through authentication or AD FS federation supplies the chosen sign-in path. Google Cloud Directory Sync copies directory users and groups into Cloud Identity. Google workforce identity federation can instead let external workforce identities use Google Cloud without synchronized user accounts.
Operate the connection
IAM Identity Center uses one identity source at a time: its own directory, Active Directory or an external SAML IdP, commonly with SCIM. A single AWS account can also configure IAM SAML or OIDC providers and federation roles directly.
Track signing-certificate renewal and keep clocks synchronized. An expired certificate or an assertion outside its short validity window can interrupt every sign-in. When sign-in succeeds but resource access fails, inspect the mapped role and cloud permissions; successful authentication alone grants no resource rights.
Key Takeaways
- Federation passes trusted identity evidence to the cloud.
- Verify token signature, intended recipient and validity.
- Map IdP attributes to cloud roles or assignments.
- Provision and deprovision accounts separately from sign-in.
- Maintain certificate renewal and clock synchronization.
4.2 Design single sign-on across many accounts and workloads
Single sign-on gives people one authentication path into many cloud accounts. Access still differs by account and role. Design the assignments so users can select the resources they need without acquiring administration everywhere.
Reuse access templates
An IAM Identity Center permission set is a policy template. Assign a group, permission set and account together; Identity Center creates and maintains the corresponding IAM role in that account. Users select the account and role in the AWS access portal or command-line workflow. Permission-set sessions default to 1 hour and can be configured up to 12 hours.
Suppose web staff receive Developer in web-dev and ReadOnly in web-prod. Data staff receive Developer in data-dev and ReadOnly in data-prod. Platform staff receive Administrator in shared-network. Security staff receive ReadOnly in all eight accounts, including logging, security tooling and sandbox.
The assignment counts are 2 for web, 2 for data, 1 for platform and 8 for security: 13 in total. Adding a new web developer changes one IdP group membership; the existing two web assignments determine that person's access.
In Azure, a single Entra tenant serves its subscriptions. Users see the subscriptions where they have access. A group assignment at a management group reaches every subscription beneath it, so check that all descendants really need the same role.
Federate a pipeline without a cloud key
An external build platform issues an OIDC token for a job. The cloud checks its trust conditions and exchanges it for short-lived credentials. Configure an AWS OIDC provider and role trust, an Azure federated credential on a managed identity or app registration, or a Google workload identity pool.
Restrict all the relevant claims:
- Issuer: the platform that signed the token.
- Subject: the particular repository, branch or deployment environment.
- Audience: the intended cloud recipient.
For example, an AWS GitHub trust can require token.actions.githubusercontent.com:sub to equal repo:example-org/web-app:ref:refs/heads/main. The issuer alone is too broad: many unrelated repositories use the same platform. The subject limits which job may become your cloud identity, and the role permissions limit what it may do afterward.
Include partners and departures
Invite Azure partners through B2B or trust their IdP. Give guests dedicated groups, expiry dates and access reviews. For an AWS vendor, provide a narrowly scoped role and require its customer-specific external ID. Separate partner access from staff access so that a contract ending does not require finding scattered individual grants.
Test departure as part of the design: disable a user at the IdP, confirm that new sign-ins stop and examine existing cloud sessions. Their remaining lifetime matters. Use shorter sessions for high privilege, such as 1 hour for administrators, and choose longer read-only sessions only where appropriate. Removing group membership changes future access once propagated; it does not itself guarantee that every already-issued credential has expired.
Key Takeaways
- Identity Center assignments combine a group, permission set and account.
- Permission sets maintain matching roles across assigned accounts.
- Restrict workload federation by issuer, subject and audience.
- Use dedicated partner groups or narrowly trusted vendor roles.
- Include existing sessions in deprovisioning tests.
5Enforce guardrails across the organization
Central guardrails keep workload administrators inside agreed limits. Some prevent an operation, some report a violation and others apply a repair. Learn how AWS permission ceilings, Azure resource rules and Google Cloud constraints behave across a hierarchy. Rollout needs testing, precise exceptions and a plan for existing resources, because attaching a new rule and achieving compliance are different operational tasks.
5.1 Set permission guardrails with AWS organization policies
AWS organization policies put centrally managed limits around member accounts. An account administrator can grant a role broad IAM permissions and still be stopped by a guardrail above the account.
Trace SCP permissions through the tree
A service control policy (SCP) limits IAM users and roles in member accounts, including the member account's root user. It grants no access. An ordinary IAM principal still needs an identity or resource policy grant. A member root user has inherent account permissions, which SCPs restrict.
For an action to remain available, SCPs must allow it at every level from organization root through each OU to the account. Allows attached at the same level combine; a deny anywhere on the path wins. When SCPs are enabled, FullAWSAccess is attached at the root, OUs and accounts to preserve the available permission set.
| Strategy | How it works | Maintenance consequence |
|---|---|---|
| Deny list | Keep FullAWSAccess and deny selected operations | New services remain available unless denied |
| Allow list | Replace broad allows with approved services | Newly needed services require policy updates |
Removing FullAWSAccess with no replacement allow blocks the affected path. Removing it at a child cannot cancel an explicit deny inherited from a parent.
Read a preventive rule
A region restriction can deny regional API calls outside eu-central-1 and eu-west-1 using aws:RequestedRegion. Global services such as IAM need appropriate exceptions, often through NotAction, because they use global endpoints associated with particular regions.
A developer with AdministratorAccess who launches an instance in us-east-1 is denied. The corresponding launch in eu-west-1 passes this region guardrail, but still needs the ordinary permissions and other controls to permit it. Endpoint restrictions also do not establish where every service stores or replicates data.
Know which side a guardrail protects
SCPs govern the organization's member-account principals. They do not restrict the management account, service-linked roles or outside principals using a resource policy grant.
A resource control policy (RCP) limits access to resources in member accounts for supported services, including requests from outside principals. A data perimeter can use aws:PrincipalOrgID to restrict access to organizational identities while accounting for required service access. SCPs limit your principals; RCPs protect your resources. Neither supplies the underlying permission grant.
An exception can be built into a policy condition, such as one based on aws:PrincipalArn for a named emergency role. An emergency role has no automatic exemption from an SCP deny.
Roll out and maintain controls
Test a policy in a small OU containing member accounts. Review service last accessed information, exercise deployment and operational tasks, fix unintended blocks and then expand the attachment. Testing only in the management account cannot prove that an SCP works because that account is exempt.
Other organization policy types serve different jobs. Tag policies standardize supported tagging behavior, backup policies distribute backup plans, and declarative policies enforce supported service configurations. Choose the policy type that represents the requirement before writing its statements.
Key Takeaways
- SCPs limit member-account principals and never grant access.
- Keep an allow at every level and check all explicit denies.
- Choose deny-list or allow-list management deliberately.
- RCPs protect supported resources against inside and outside callers.
- Test in member accounts before broad rollout.
- Document policy exceptions explicitly.
5.2 Enforce resource rules with Azure Policy
Azure Policy governs the properties and configurations resources may have. Azure RBAC governs which principal may request an operation. A permitted administrator can still submit a request that Policy rejects, including an Owner.
Build a policy assignment
A definition contains an if condition and a then effect. An initiative groups related definitions. An assignment applies a definition or initiative at a scope, while parameters provide values such as allowed locations. A definition stored in the environment does nothing until assigned.
An exclusion removes child scopes from an assignment. An exemption records an exception for a scope or resource, categorized as Waiver or Mitigated, with an optional expiry. Use exceptions narrowly enough that the rest of the intended scope remains governed.
This rule fragment rejects a regional resource whose location is outside the parameter list:
{
"if": {
"field": "location",
"notIn": "[parameters('allowedLocations')]"
},
"then": { "effect": "deny" }
}
The surrounding definition supplies the parameter and appropriate resource applicability. Built-in policies account for those details and are usually the starting point for requirements such as "Allowed locations" or "Require a tag and its value on resources".
Choose the effect
| Effect | Behavior |
|---|---|
deny | Reject a noncompliant create or update |
audit | Permit the request and report noncompliance |
append, modify | Add or change supported request properties |
auditIfNotExists | Report a missing related resource |
deployIfNotExists | Deploy a required related resource |
denyAction | Block a supported action, such as deletion |
manual supports attestation and disabled turns evaluation off. addToNetworkGroup and mutate serve specific network and Kubernetes cases.
For create and update requests, append and modify run before deny, then audit follows. A modify rule that supplies the required CostCenter tag can make the request compliant before a deny rule checks that tag. Effects that inspect related resources run after the resource provider succeeds.
Combine rules and repair existing resources
Each assignment is evaluated independently. If one applicable deny allows only westeurope and another allows only northeurope, a regional resource cannot satisfy both. A lower assignment cannot relax the parent rule. Align the parameters or create a deliberate exclusion or exemption at the governing assignment.
A new deny policy does not delete existing noncompliant resources. Compliance evaluation reports them. For existing resources, modify and deployIfNotExists need a remediation task. Their assignment's managed identity needs the permissions required to make those changes; a policy effect does not supply those permissions by itself.
Begin with audit or DoNotEnforce, inspect compliance, repair or exempt the affected resources and then enforce. Assign common rules high enough that new subscriptions inherit them. Compliance results take time to update; full scans normally follow a roughly 24-hour cycle.
Key Takeaways
- Policy definitions need assignments to govern resources.
- RBAC grants actions; Policy checks resource rules.
- Modify can repair a request before deny evaluates it.
- Every applicable deny must be satisfied.
- Existing resources need remediation, not merely a new deny.
- Grant the remediation identity its required roles.
- Start with audit or non-enforcement before rollout.
5.3 Choose and combine guardrails across clouds
A governance requirement needs a control that acts at the right time. Decide whether to prevent a violation, detect it after it occurs or correct it automatically. These behaviors complement one another across a cloud environment.
Match behavior to the requirement
Preventive controls block noncompliant operations. SCPs, Azure Policy deny and Google Cloud organization policies provide examples. Detective controls report an existing problem, such as AWS Config rules or Azure Policy audit. Corrective controls make a change, such as policy-driven remediation.
A rule prohibiting public sharing may need prevention. A broad set of recommended settings may begin with detection so owners can review exceptions. Automatic correction fits only when the fix is predictable and safe. A control that produces a report still needs an owner who acts on it.
AWS Control Tower describes three control behaviors: preventive, detective and proactive. Its proactive controls use CloudFormation hooks to inspect resources before provisioning. They do not mean the same thing as corrective controls. Control Tower controls target OUs and carry mandatory, strongly recommended or elective guidance. Preventive implementations can use SCPs, RCPs or declarative policies.
Apply Google Cloud constraints
The Organization Policy Service controls permitted configurations, while IAM controls access. One organization policy configures one constraint at an organization, folder or project. For example:
constraints/gcp.resourceLocationsrestricts supported resource locations.constraints/iam.allowedPolicyMemberDomainsrestricts domains whose identities may receive roles.constraints/iam.disableServiceAccountKeyCreationblocks service account key creation.constraints/compute.vmExternalIpAccesscontrols which virtual machines may have external IP addresses.
List constraints allow or deny values; boolean constraints are enforced or not. Custom constraints address supported resource fields. Descendants inherit policies by default. A child policy can replace or merge with its parent according to the constraint's evaluation rules, so inspect the effective policy before assuming the parent setting remains unchanged.
Dry-run mode records violations without blocking them. Most constraints do not repair existing resources: locate the old violations and plan changes separately.
Work through a location requirement
For customer data restricted to approved EU locations, put the rule at the scope containing those workloads. AWS can restrict regional calls with an SCP, Azure can deny unsupported locations with an Allowed locations assignment, and Google Cloud can apply constraints/gcp.resourceLocations using in:eu-locations.
These controls address supported resource locations or request endpoints. Data residency also depends on each service's storage, processing, replication and backup settings. A successful deployment in an approved region does not settle every data movement question.
For each control, record its scope, behavior, exceptions, test plan and owner. Keep least-privilege roles alongside guardrails: a coarse organization rule can prohibit an operation without limiting all the other actions a broadly privileged user could take.
Key Takeaways
- Choose preventive, detective and corrective behavior to fit the risk.
- Control Tower proactive checks differ from corrective remediation.
- Google organization policies enforce configuration constraints.
- Inspect effective constraint inheritance and child overrides.
- Location controls are one component of data-residency design.
6Protect and organize resources with locks and tags
A deletion mistake and an unowned resource need different controls. Resource locks add a deliberate management barrier, while tags attach consistent metadata for ownership, automation and policy. Learn which operations a lock reaches, which everyday tasks it can interrupt and how tags differ across providers. Enforcement and maintenance make these controls useful after the first deployment, as resources and teams change.
6.1 Protect resources with locks and deletion protection
A resource lock places a deliberate obstacle in front of accidental management changes. Apply it where the operational need is clear, because a lock can block administrators as well as routine operators.
Choose an Azure lock level
| Lock | Management behavior while applied |
|---|---|
CanNotDelete | Authorized reads and changes continue; deletion is blocked |
ReadOnly | Reads continue; updates and deletion are blocked |
The portal calls CanNotDelete a Delete lock. Set locks on a subscription, resource group or individual resource; management groups do not support them. Descendants inherit a parent's lock, including resources added later. When locks overlap, the most restrictive restriction applies.
A CanNotDelete lock on rg-payments-prod lets authorized engineers update, restart and scale its virtual machines while blocking deletion. A ReadOnly lock also blocks daily management changes and can be too restrictive for an operating workload.
Separate control plane from data plane
Azure locks apply to control-plane requests sent through Azure Resource Manager. They do not stop data-plane operations against the data a service holds. A delete lock can protect a storage account from deletion while someone with blob data permissions can still delete its blobs. A read-only lock on a SQL logical server protects its management configuration while database data can still change.
Decide which object needs protection: the service resource, its stored data or both. Management locks and service-specific data protection address different objects.
Check side effects before widening the scope
Some management actions that sound like reads or ordinary operation use POST requests and are blocked by ReadOnly. Examples include listing storage-account keys, starting or restarting virtual machines and scaling an App Service plan.
A CanNotDelete lock on a resource group also blocks automatic cleanup of old deployment history. Once that history reaches 800 entries, deployments can fail. Test locks in a representative scope and include deployment operations in the test.
Deleting a resource group containing a delete-locked resource fails for the whole group. Resource Manager does not delete the unlocked resources first and leave the locked one behind.
Control removal and choose cloud equivalents
Creating or removing locks requires Microsoft.Authorization/locks/* permissions. Owner and User Access Administrator have them. A lock remains effective until removed, but a person allowed to remove it can deliberately unlock the resource. Log removal as part of the approved change process.
AWS offers service-specific protections: EC2 termination protection, RDS deletion protection, CloudFormation stack termination protection and S3 Object Lock for write-once-read-many object storage. IAM or SCP denies can also block deletion. Google Cloud liens block project deletion; services such as Compute Engine and Cloud SQL have deletion protection settings.
Choose protections by the target resource and operation. A team that only needs viewing rights should receive an appropriate Reader assignment. A ReadOnly lock restricts all users at the scope and can disrupt other teams' authorized operations.
Key Takeaways
- Choose CanNotDelete when routine management must continue.
- Locks inherit to descendants and the most restrictive lock applies.
- Azure locks protect management operations, not stored data operations.
- ReadOnly can block POST-based actions such as restarts.
- A locked child prevents deletion of its entire resource group.
- Lock-removal permission makes a lock a safety catch, not an immutable boundary.
6.2 Design and enforce a tagging strategy
Tags make ownership and automation visible on resources. A useful strategy specifies exact keys, allowed values, an accountable owner and an enforcement method. A free-text field that everyone fills differently cannot support reliable access rules or reporting.
Define a small shared vocabulary
Start with mandatory keys such as "Owner", "Environment", "CostCenter" and "Application". Limit Environment to values such as "Production", "Staging", "Development" and "Sandbox". Optional tags can guide automation, such as "Schedule = office-hours", or record data classification.
Keep the mandatory set short enough that teams can supply it correctly. Apply it in account vending and deployment templates, and define who corrects existing resources.
Respect provider differences
| Provider | Case behavior | Common resource limit |
|---|---|---|
| AWS tags | Keys and values are case-sensitive | 50 user-defined tags |
| Azure tags | Key operations ignore case; values are case-sensitive | 50 tags |
| Google Cloud labels | Use the provider's lowercase naming rules | 64 labels |
AWS permits keys up to 128 characters and values up to 256. Azure names can reach 512 characters, or 128 on storage accounts, and values 256. Azure subscriptions and resource groups also support up to 50 tags. Provider and service support determine which resources can carry tags.
Tags are plain-text metadata visible in logs or exports. Keep secrets and personal data out of them.
Apply and enforce tags on the actual resources
AWS and Azure resources do not inherit tags from accounts, subscriptions or resource groups. A template must apply them or a policy must copy them. Azure's "Inherit a tag from the resource group if missing" uses modify; remediation handles existing resources. A deny policy can require a tag and value.
AWS tag policies standardize key case and allowed values and can enforce compliance for supported resource types. They do not by themselves require every untagged resource to acquire a missing tag. Use a supported creation-time IAM or SCP condition, such as aws:RequestTag/CostCenter, when the service action supports it.
Google Cloud labels are not inherited. Resource Manager tags are a separate feature: they can be inherited and tested in IAM conditions or organization policies. Do not substitute a label where an inherited policy tag is required.
Repair an inventory and prevent recurrence
An audit finds 1,050 of 1,200 resources have every mandatory tag:
The remaining 150 comprise 90 missing CostCenter and 60 with lowercase "environment". In AWS, that lowercase spelling is a different key. Bulk-correct the resources, then enforce key spelling and creation requirements so the same gap does not reappear. Activate an AWS user-defined cost allocation tag before using that key to group billing data.
Protect tags used for access
Attribute-based access control (ABAC) uses attributes in authorization conditions. AWS can compare a principal's Project tag with a resource's Project tag. Azure role conditions support specific attributes, such as blob index tags and user custom security attributes; ordinary resource tags are not a general Azure RBAC condition mechanism. Google Cloud IAM conditions can test Resource Manager tags, including inherited ones.
When metadata influences access, permission to edit it becomes security-sensitive. Restrict those edits. Tags organize resources across dimensions, but separate accounts or subscriptions provide the isolation and governance boundaries needed for different environments.
Key Takeaways
- Standardize exact tag keys, values, ownership and enforcement.
- Check each provider’s case rules and resource support.
- Apply tags to resources; AWS and Azure do not inherit container tags.
- Distinguish Google Cloud labels from inherited Resource Manager tags.
- Combine cleanup of existing tags with prevention of new gaps.
- Protect edits to attributes that influence authorization.
- Use accounts or subscriptions for isolation.
Cloud Identity and Access Management examples
1Build identities for a cloud team
14 steps
- 1IntroductionStart with the callers
A reporting service needs staff access, a cloud-hosted application and an external build job. Each needs an accountable identity before it can receive permissions: human identities for staff, workload identities for the application and job.
Follow the design from the directory to the application, then into a temporary AWS role session, where trust and permissions differ. The key question at each stage is which principal will actually make the request.
- 2ExplanationSeparate people from workloads
Give staff named human identities and give applications and jobs workload identities. A group organizes access for its members but never signs in itself.
In Azure, the human directory is an Entra tenant. AWS uses Identity Center for multi-account workforce access, while Google uses Cloud Identity or Workspace. Identify the caller in the audit log, not just the person who owns the task.
- 3ExampleChoose the application identity
The reporting application runs on an Azure VM. Attach a managed identity and assign it the resource access the application needs. Azure supplies its credentials without an application secret in the code.
A system-assigned identity ends when this VM is deleted. If an identity must survive replacement or be shared with other resources, a user-assigned identity supplies that separate lifetime.
- 4ChallengeChoose an external job identity
The build job runs outside Azure and should not store a cloud key. What access pattern fits, and what identity should appear for its cloud work?
---reveal---
Use workload identity federation to exchange the build platform’s token for short-lived cloud access. The job acts through its designated workload identity, with permissions separate from staff accounts. A shared developer login would hide that distinction.
- 5ExplanationLet membership carry team access
Create a directory group for reporting operators, then give that group the required cloud assignments. New operators join through membership instead of separate edits on every resource.
Choose assigned membership when an administrator must approve each member. Dynamic membership uses attributes to add and remove members automatically, so administrators cannot manually insert exceptions into its list.
- 6ExampleCheck the membership rule’s source
A proposed rule includes users whose department is Reporting. Before using it to grant access, find out who can change that attribute.
If employees can edit it themselves, they can select themselves into the group. Protect the attribute at its authoritative source or use assigned membership. For synchronized accounts, a manual cloud edit may be overwritten by the next sync.
- 7ChallengeHandle a partner and a license
A partner will join a project group through Entra B2B. A staff member also needs a service license but has no usage location. What separate directory actions are needed?
---reveal---
Invite the partner, place them in a dedicated reviewed group and give their access an end date. Set the staff member’s usage location before licensing. Guest status describes the partner’s relationship; it does not by itself identify their authentication source.
- 8ExplanationRead the two role policies
An AWS role has trust for obtaining a session and permissions for using it. STS returns temporary credentials after a permitted assumption request.
For ordinary AWS callers, the trust uses
sts:AssumeRole. A role can trust a caller yet have no useful resource permissions, so successfully receiving credentials is only the first access check. - 9ExampleConfigure the destination first
The reporting source account is
111111111111; its archive is in222222222222. Create a destination role in the archive account and name the permitted source role in its trust.Attach the archive-reading permissions to the destination role. These policies answer different questions: who may enter this role, and what the session can do after entry.
- 10ExampleAuthorize the source and assume
Now give the source role permission to call
sts:AssumeRoleon the destination role ARN. The source calls STS and receives the destination role’s session credentials.Subsequent archive requests use those credentials, including the session token. The source account’s original role permissions do not simply become archive-account permissions; the application is acting through the destination role session.
- 11ChallengeApply the chaining limit
The source caller is already using role credentials. The destination allows a maximum of 5 hours, and the caller requests 2 hours. Can this session use that duration?
---reveal---
No. This is role chaining, so the new session is capped at 1 hour. The destination’s ordinary maximum does not raise the chaining limit. Use a permitted duration and renew access through the approved identity path when needed.
- 12TipProtect a vendor assumption path
A vendor with many customers may need its own role in your account. Name the vendor’s trusted principal and require the customer-specific external ID that the vendor issues.
The external ID prevents another customer from persuading the same vendor to use your role. It supplements the trust relationship; it is not a password that replaces the trusted principal or the role’s resource permissions.
- 13ChallengeClose the human and workload lifecycles
A reporting engineer leaves, but the application continues running. What should end, and what should remain?
---reveal---
Disable the engineer’s human account, remove unneeded memberships and address existing sessions through revocation or expiry. Keep the application’s separately owned workload identity and its required access. Separate identities let the departure end the person’s access without breaking the service.
- 14RecapTrace an identity to its owner
For each request, identify a human or workload caller, its owner and its access path. Groups maintain human access; attached or federated identities avoid stored workload keys.
For a role session, inspect trust before assumption, permissions after assumption and the session lifetime when access should end.
2Lay out a governed cloud environment
12 steps
Save this lesson to follow every Walkthrough step by step.
- 1IntroductionBuild the tree before the workloads
- 2ExplanationMap the container levels
- 3ExampleTrace an Azure path
- 4ChallengePredict a parent change
- 5ExplanationGroup by rules that stay useful
- 6ExampleCount the workload containers
- 7ExampleAdd shared services and vending
- 8ChallengeFind the missing landing-zone layer
- 9ExplanationReserve power at the top
- 10TipKeep an independent recovery path
- 11ChallengeReview a move that removes a guardrail
- 12RecapReview the baseline and the path
3Explain why a cloud request passes or fails
16 steps
Save this lesson to follow every Walkthrough step by step.
- 1IntroductionStart with one failed request
- 2ExplanationRead action and resource together
- 3ExampleGive the reader the two S3 grants
- 4ChallengeInterpret an Azure exclusion
- 5Key InsightDistinguish management from data access
- 6ExplanationWrite down the assignment triple
- 7ExampleAssign the VM task narrowly
- 8ChallengeSeparate operating from granting access
- 9ExplanationCombine Azure grants from the top
- 10ChallengeKeep a sibling’s inherited access
- 11ExampleCollect an AWS object request’s layers
- 12ExampleEvaluate the different failed operations
- 13Key InsightKeep the resource-policy exception precise
- 14ChallengeInvestigate before changing access
- 15TipUse evidence from the real caller
- 16RecapLocate the determining layer
4Follow a federated sign-in into cloud access
12 steps
Save this lesson to follow every Walkthrough step by step.
- 1IntroductionConnect one identity source
- 2ExplanationSet up the signing trust
- 3ExampleStart at the service provider
- 4ExampleValidate and map the assertion
- 5ChallengeDiagnose a valid token for the wrong recipient
- 6ConnectionKeep sign-in and provisioning separate
- 7ExplanationAssign access across AWS accounts
- 8ChallengeCount account assignments
- 9ExplanationExchange a pipeline token
- 10ChallengeNarrow a shared-platform trust
- 11ChallengeTest a contractor’s departure
- 12RecapVerify the full access chain
5Roll out guardrails that hold
15 steps
Save this lesson to follow every Walkthrough step by step.
- 1IntroductionTurn a requirement into a control
- 2ExplanationSet a ceiling without a grant
- 3ExampleFollow the SCP path
- 4ChallengeFind the missing allow
- 5Key InsightProtect resources from outside callers
- 6TipTest where the policy applies
- 7ExplanationBuild an Azure resource rule
- 8ExampleWatch modify run before deny
- 9ChallengeResolve incompatible location rules
- 10ExplanationRepair resources already present
- 11ExplanationChoose prevention, detection or repair
- 12ExampleInspect a Google constraint’s inheritance
- 13ChallengeChoose the rollout behavior
- 14ChallengeReview a location-control design
- 15RecapCheck behavior, path and exceptions
6Protect a service and standardize its metadata
12 steps
Save this lesson to follow every Walkthrough step by step.
- 1IntroductionProtect the right object
- 2ExplanationChoose a lock for daily operation
- 3ExampleFollow a locked service request
- 4ChallengeProtect stored data separately
- 5TipInclude operations in the lock test
- 6ExplanationDefine keys that teams can use
- 7ExampleApply metadata to each resource
- 8ChallengeRead an AWS tagging audit
- 9ExampleCalculate the complete-tag rate
- 10Key InsightTreat access-driving metadata as sensitive
- 11ChallengeCombine a safe lock and useful tags
- 12RecapMaintain protection and metadata
Cloud Identity and Access Management practice questions
Set 1: Choose identities and cloud boundaries10 Practice Questions
Question 1 of 10
Show answerHide answer
Question 2 of 10
Show answerHide answer
Question 3 of 10
Show answerHide answer
Question 4 of 10
Show answerHide answer
sts:AssumeRole on the destination role. Target trust alone does not supply that source-side permission in this cross-account path. A grant on the source role’s own ARN points at the wrong role and would not authorize the requested assumption.Question 5 of 10
Show answerHide answer
Question 6 of 10
Show answerHide answer
Question 7 of 10
Show answerHide answer
Question 8 of 10
Show answerHide answer
Question 9 of 10
Show answerHide answer
Question 10 of 10
Show answerHide answer
Set 2: Trace permissions and federated access10 Practice Questions
Save this lesson to see every answer and practice every set.
Question 1 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 2 of 10
ListBucket?Show answerHide answer
Save this lesson to see this answer.
Question 3 of 10
NotActions. Another applicable role grants that delete operation. No deny or lock applies. What is the RBAC result?Show answerHide answer
Save this lesson to see this answer.
Question 4 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 5 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 6 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 7 of 10
GetObject and DeleteObject on one bucket’s objects. Its boundary allows only GetObject. An SCP explicitly denies GetObject. No other grants apply. What happens to reads and deletions?Show answerHide answer
Save this lesson to see this answer.
Question 8 of 10
GetObject to an IAM role session ARN. The role’s boundary omits GetObject but contains no matching deny. Its SCP path permits GetObject and no other restrictions apply. What is the result?Show answerHide answer
Save this lesson to see this answer.
Question 9 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 10 of 10
Show answerHide answer
Save this lesson to see this answer.
Set 3: Apply guardrails, locks and tags10 Practice Questions
Save this lesson to see every answer and practice every set.
Question 1 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 2 of 10
TerminateInstances. Its account allows S3 and EC2. A role’s IAM policy permits S3 reads, DescribeInstances and TerminateInstances. No other restrictions apply. What remains available?Show answerHide answer
Save this lesson to see this answer.
Question 3 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 4 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 5 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 6 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 7 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 8 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 9 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 10 of 10
Show answerHide answer
Save this lesson to see this answer.
Set 4: Resolve cloud governance design problems10 Practice Questions
Save this lesson to see every answer and practice every set.
Question 1 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 2 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 3 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 4 of 10
DataActions; the role is assigned at subscription scope. What change fits least privilege?Show answerHide answer
Save this lesson to see this answer.
Question 5 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 6 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 7 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 8 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 9 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 10 of 10
Show answerHide answer
Save this lesson to see this answer.
Stuck on your own question? Homework Help
Key Terms
A
Access elevation
Account vending
Additive access
Allow-list strategy
Attribute-based access control
Audience claim
AWS Control Tower
AWS STS
B
Blast radius
C
CanNotDelete
Control plane
Corrective control
Cost allocation tag
Custom role
D
Data perimeter
Data plane
Delegated administrator
Deny assignment
Deny-list strategy
Detective control
Dry-run mode
Dynamic membership
E
Effective access
Emergency access
Enforcement mode
Explicit deny
External ID
F
Federation
FullAWSAccess
G
Google Cloud project
Group-based licensing
Guest user
I
IAM role
Identity lifecycle
Identity provider
Identity-based policy
Implicit deny
Inheritance
J
Just-in-time provisioning
L
Label
Landing zone
Least privilege
Lien
Log archive account
M
Managed identity
Management account
Management group
Microsoft Entra tenant
N
NotActions
O
OpenID Connect
Organization policy constraint
Organizational unit
P
Permission set
Permissions boundary
Policy effect
Policy exclusion
Policy exemption
Policy initiative
Policy Troubleshooter
Predefined role
Preventive control
Principal
Privileged Identity Management
Proactive control
R
ReadOnly lock
Remediation task
Resource control policy
Resource group
Resource lock
Resource Manager tag
Resource-based policy
Role assignment
Role binding
Role chaining
Role definition
S
SAML assertion
SCIM
Scope
Security group
Self-service password reset
Separation of duties
Service account impersonation
Service control policy
Service principal
Single sign-on
Subject claim
T
Tag
Tag policy
Tagging strategy
Trust policy
U
Usage location
User principal name
W
Workload identity
Workload identity federation
- 1Cloud Identity and Access Management
- 2Cloud Network Design
- 3Auto Scaling
- 4Cloud Storage and Database Design
- 5Designing Resilient Architectures
- 6Designing Secure Cloud Architectures
- 7Infrastructure as Code
- 8Cloud Monitoring
About this lesson
Make your own Study Materials
Turn your notes, slides and documents into Study Guides, Practice Questions, Flashcards and 6 more tools.