Use this when controlling who and what can act on cloud resources.
Cloud IAM
Cloud IAM controls who and what can do which actions on which cloud resources through users, roles, policies and conditions. Least privilege, MFA and avoiding long-lived access keys are the main controls.
1. Cloud IAM: least privilege roles, no long-lived keys, MFA for humans, workload identities.
2. Root/global admin protected and unused.
3. Review privileged roles.
4. Use permission boundaries/policies.
5. Access analyzers.
identity → role/policy → cloud resources
Context & applicabilityCommon mistakes · platform/version boundaries
- Long-lived access keys for users and CI pipelines — use roles and workload identity federation (OIDC).
- Wildcard policies (
"Action": "*"). - Root/global admin accounts used daily or without MFA.
- Unused roles and permissions never reviewed (use IAM Access Analyzer, Entra access reviews).
Operational reference
Fast context before you go deeper.
az role assignment list --all --query "[?roleDefinitionName=='Owner']"Verification & Troubleshooting
Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.
Use the operational verification above to establish the expected state.
Capture the concrete output, symptom, packet, log or counter before changing anything.
Step 1 Checks Verify boundary
aws iam generate-credential-report ; aws iam get-credential-report
aws accessanalyzer list-findings --analyzer-arn <arn>
az role assignment list --all --query "[?roleDefinitionName=='Owner']"
Look for unused keys older than 90 days, users without MFA, and Owner/Administrator assignments that are not needed.
Evidence · 1 on this Topic
Expected observations and documentation recipes are reference material. Record actual output, device identity, scope and time before claiming a verified result.
- Least privilege and MFA are essential.
- Avoid long-lived access keys; use roles.
- Wildcard permissions are a red flag.
aws iam get-account-authorization-details > iam.json— AWS IAM exportaz role assignment list --all -o table— Azure RBACgcloud projects get-iam-policy <project>— GCP IAM
ReferenceWhy it matters1 section · depth on demand
IAM good practice
- Federate users from the corporate IdP with MFA; no IAM users with passwords where avoidable.
- Roles with least privilege; avoid wildcard actions (
*) and owner/contributor at subscription level. - Workload identities (managed identities, IAM roles, workload identity federation) instead of access keys.
- Just-in-time elevation (Entra PIM, AWS IAM Identity Center with time-bound access).
- Review unused permissions (IAM Access Analyzer, Entra access reviews).
ReferenceImportant terms & boundaries1 section · depth on demand
In depth
Cloud IAM controls who and what can perform which actions on which cloud resources. It is the primary security boundary in the cloud: a single overly permissive role or leaked access key can expose an entire account.
| Practice | Implementation |
|---|---|
| Central identity | SSO from the corporate IdP, no local cloud users |
| No long-lived keys | Roles, managed identities, OIDC federation for CI/CD |
| Least privilege | Scoped roles; avoid wildcard actions/resources |
| Privileged access | JIT elevation (PIM, temporary permission sets) |
| Guardrails | Organisation policies/SCPs blocking risky actions |
| Review | Access analysers, unused permission reports |
aws iam generate-credential-report && aws iam get-credential-report --query Content --output text | base64 -d | cut -d, -f1,4,9,11
az role assignment list --all --query "[?roleDefinitionName=='Owner']"
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Verification history & basis
When and against what this Topic was checked. Later text edits do not count as a new check.
Authoritative/upstream documentation reviewed for bounded claims in Cloud Security → Cloud IAM. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://csrc.nist.gov/pubs/sp/800/210/final · confidence 94%What changed and what may be affected
Recent technical edits are separated from ordinary page timestamps. Relationship impact is advisory: it identifies nearby canonical references to review, not automatic breakage.
Terms & aliases
Hover a linked term for a quick definition; click it to open its glossary entry. Aliases are other names that find this Topic in search.