What is IAM? Explained with an office building's security desk
Identity and access management (IAM) checks who a person, app or AI agent is, decides what each may do, and logs what they did. Like an office security desk: ID check, rulebook, day pass and log book.
- Author
Umair Mateen- Published
- Reading time
- 5 min
- Category
- Engineering
Our story on AWS giving AI agents their own identities, like this week's posts on Bedrock Gateway, Claude Managed Agents and the IAM Credential Broker, keeps coming back to one idea: IAM, short for identity and access management.
In one sentence: Identity and access management (IAM) is the system that checks who a person or program is, decides what each one is allowed to do, and records what they did, so the right people and tools reach the right things and nothing more.
The everyday picture
Picture the security desk in the lobby of a large office building. Everyone who comes in, staff, visitors or delivery drivers, stops at the desk first.
The guard checks your ID. Then the guard looks in a rulebook that says which rooms you may enter. If you are allowed, you get a pass that works for those rooms and runs out at the end of the day. Every visit goes into a log book.
IAM is that security desk for your software. The visitors are people, apps and AI agents. The rooms are your files, databases and cloud services.
Every visitor, person or AI agent, proves who they are at the desk. The rulebook decides which rooms they may enter, a pass that expires opens only those rooms, and every visit is logged.
How it works, step by step
- Someone asks to come in (a visitor arrives at the desk). This could be a staff member, an app or an AI agent. In IAM language each one is an identity, sometimes called a principal.
- Authentication proves who they are (the guard checks the ID). A person signs in with a password and a second check. A program shows a secret key or a short-lived token. AWS describes this as matching sign-in details to an identity the account trusts.
- Authorization decides what they may do (the guard reads the rulebook). The rules are called policies. In AWS, anything a policy does not allow is denied by default, and a rule that says "deny" always beats one that says "allow".
- A role hands out a temporary pass (a day pass for a job, not a person). Instead of giving an app a permanent key, you create a role with the rights a task needs. Whoever takes on the role gets temporary credentials that expire after minutes or hours.
- Every action is written down (the log book). AWS records IAM sign-ins and calls in CloudTrail, including whether it was a user, a role or a service that asked. That log is your audit trail.
Try it · Myth or fact
IAM at the security desk: myth or fact?
Decide for yourself first, then tap each statement to check it.
0 of 4 checked
Where the picture stops
- A guard can use judgement. IAM cannot. It follows the written rules exactly, so one badly written rule can let in far more than you meant.
- A building has one desk. A company often has several IAM systems: one for staff sign-in, such as Microsoft Entra ID or Okta, and one inside each cloud, such as AWS IAM. They are usually connected so one sign-in works across them.
- Most visitors are not people. Apps, scripts and AI agents now make far more requests than staff do, and each needs its own identity and rules.
Why it matters for your business
- Less damage when something goes wrong. If a password or key is stolen, tight rules limit what the thief can reach. This is the idea of least privilege.
- Safer AI agents. An agent with its own identity and narrow rules can do its job without holding a master key to everything.
- Faster answers when someone asks "who did this?" The log shows which person, app or agent made each change.
- Cost control. Several tools in this week's news, such as spending caps in Bedrock Gateway, attach limits to IAM roles, so the same identities also decide who can spend what.
An example
Imagine a 30-person online shop that runs on a cloud provider. Today, three developers and two AI agents share one admin key. The shop's adviser sets up IAM instead. Each developer signs in as themselves. The order-tracking agent gets a role that can read orders but not refunds. The refund agent can issue refunds only up to a set amount. When a customer complains about a wrong refund, the log shows which agent did it, and when.
Frequently asked questions
What does IAM stand for?
Identity and access management. It covers proving who someone is, deciding what they may do, and keeping a record of what they did.
What is the difference between authentication and authorization?
Authentication checks who you are, like showing ID at the desk. Authorization checks what you are allowed to do once inside, like the rulebook that lists your rooms.
What is an IAM role?
A role is a set of permissions that a person, app or agent can take on for a while. In AWS, using a role gives temporary credentials that expire on their own, so there is no permanent key to lose.
Is AWS IAM free?
AWS says IAM itself has no extra charge. You pay for the other AWS services your users and roles use, and for some optional analysis features.
Related explainers
The DevDrift sets up cloud platforms and AI agents with clear access rules and audit trails: see how.
Sources
Could you explain this to a colleague now?
Mark it and posts that mention it will show a tick. Saved in this browser only.