Identity: IAM vs Entra ID vs Cloud Identity
On AWS, "IAM" is both the directory of identities (users, roles) and the permission system (policies). Azure and Google Cloud split those two jobs: who you are comes from a directory that also serves email and office apps, and what you may do comes from the cloud's role system. Getting that split straight makes the next four lessons easy.
On AWS this is… IAM users, groups and roles from IAM Users, Groups and Roles, and IAM Identity Center for workforce sign-in, from IAM Best Practices.
Who are the principals?
| Kind of principal | AWS | Azure | Google Cloud |
|---|---|---|---|
| Directory | IAM (per account) and Identity Center (per organization) | Microsoft Entra ID tenant (one per organization, shared with Microsoft 365) | Cloud Identity or Google Workspace domain; any Google account can be granted access |
| A person | IAM user (avoid), Identity Center user | Entra user (ada@contoso.com) |
Google account (user:ada@example.com) |
| A group of people | IAM group, Identity Center group | Entra group | Google group (group:sre@example.com) |
| An application or CI system | IAM role (assumed), IAM user with keys (avoid) | app registration + service principal, or a user-assigned managed identity | service account |
| A cloud resource acting for itself | IAM role via instance profile / task role | managed identity (system- or user-assigned) | service account attached to the resource |
| External identities | IAM OIDC/SAML providers, Identity Center external IdP | B2B guests, external identity providers, federated credentials | Workforce and Workload Identity Federation |
Two consequences:
- Azure has one tenant, many subscriptions. Every subscription trusts exactly one Entra tenant. The same Entra ID that runs your company's Outlook sign-in decides who can sign in to Azure. Conditional Access policies (require MFA, block unmanaged devices) apply to the portal and CLI too.
- Google Cloud trusts Google identities. People are Google accounts, usually managed through Cloud Identity or Workspace for your domain, often synced from Entra ID or another IdP. Granting a role to
user:someone@gmail.comis possible, which is why theiam.allowedPolicyMemberDomainsconstraint (Guardrails) exists.
Two kinds of roles on Azure
Azure has two separate role systems, and new users mix them up:
| Microsoft Entra roles | Azure roles (Azure RBAC) | |
|---|---|---|
| Control | the directory: users, groups, app registrations, tenant settings | Azure resources: VMs, storage, networks, subscriptions |
| Examples | Global Administrator, User Administrator, Application Administrator | Owner, Contributor, Reader, User Access Administrator, plus hundreds of service roles |
| Scope | tenant (or administrative unit) | management group, subscription, resource group, resource |
A Global Administrator does not automatically have access to subscriptions (they can elevate themselves to User Access Administrator at the root, which is logged and should be rare). A subscription Owner cannot create users in Entra ID. On AWS, both jobs are IAM permissions in the same account.
Google Cloud has one role system, IAM, used both for resources and for most identity-related administration; user and group management happens in the Cloud Identity / Workspace admin console.
Workforce sign-in in practice
All three clouds want people to sign in through single sign-on, with short-lived sessions and no long-lived keys:
| AWS | Azure | Google Cloud | |
|---|---|---|---|
| Console | Identity Center portal → account → permission set | portal.azure.com with the Entra account | console.cloud.google.com with the Google account |
| CLI | aws sso login |
az login |
gcloud auth login |
| Just-in-time admin | temporary elevated access (via Identity Center integrations) | Privileged Identity Management (PIM): eligible assignments activated for hours, with approval | Privileged Access Manager (PAM): temporary grants with approval |
Model: one person, three principal strings
Policies refer to principals with a different string format on each cloud. Mixing them up is a common source of "role assigned but nothing works":
person = {"email": "ada@example.com", "aws_account": "111122223333",
"entra_object_id": "3f2a7c9e-0b1d-4e5f-8a6b-7c8d9e0f1a2b"}
group = {"name": "sre", "email": "sre@example.com",
"entra_object_id": "9d8c7b6a-5f4e-4d3c-8b2a-1f0e9d8c7b6a"}
def aws(kind, x):
return (f"arn:aws:iam::{person['aws_account']}:user/{x['email'].split('@')[0]}"
if kind == "user" else "(IAM groups can't be a Principal; grant via roles)")
def azure(kind, x):
# role assignments take an object ID plus a principal type
return f"--assignee-object-id {x['entra_object_id']} --assignee-principal-type {'User' if kind == 'user' else 'Group'}"
def gcp(kind, x):
return f"{kind}:{x['email']}"
for kind, x in [("user", person), ("group", group)]:
print(f"{kind}:")
print(" AWS ", aws(kind, x))
print(" Azure", azure(kind, x))
print(" GCP ", gcp(kind, x))user:
AWS arn:aws:iam::111122223333:user/ada
Azure --assignee-object-id 3f2a7c9e-0b1d-4e5f-8a6b-7c8d9e0f1a2b --assignee-principal-type User
GCP user:ada@example.com
group:
AWS (IAM groups can't be a Principal; grant via roles)
Azure --assignee-object-id 9d8c7b6a-5f4e-4d3c-8b2a-1f0e9d8c7b6a --assignee-principal-type Group
GCP group:sre@example.com
Azure identifies principals by object ID (a GUID), so renaming a user or group never breaks an assignment, while deleting and recreating one with the same name does. Google Cloud identifies them by email-style strings with a type prefix: user:, group:, serviceAccount:, domain:, and principal:// / principalSet:// for federated identities.
Best practices that carry over
- Grant roles to groups, not individuals, on every cloud.
- No long-lived keys for people. For machines, prefer managed identities, attached service accounts and federation (next lessons) over secrets.
- Require MFA through the identity provider (Conditional Access in Entra ID; 2-Step Verification in Google), and keep two break-glass accounts that are excluded from fragile policies and monitored.
Test yourself
Which Azure role system controls who can create users and app registrations?
- Azure RBAC
- Microsoft Entra roles
- Azure Policy
- Resource locks
How does Google Cloud IAM write a group principal?
- arn:gcp:group/sre
- group:sre@example.com
- the group's object ID
- groups/sre
What is the Azure feature for time-limited, approved activation of privileged roles?
- Conditional Access
- Privileged Identity Management (PIM)
- Managed identities
- Resource locks