An analyst must read approved monthly reports. They do not need to replace the reports, delete them or administer the storage service. Giving the analyst every available permission may make an access error disappear, but it also allows actions the job never required.
Least privilege means granting the actions and resources needed for the task, with appropriate conditions, rather than starting from unrestricted access. To apply it, separate two questions: who is making the request, and what may that identity do?
Sign-In Is Not Permission
Authentication establishes an identity using credentials or a trusted sign-in system. Authorization decides whether a particular request is allowed. A successful sign-in does not mean every subsequent request succeeds.

One role-based access example. Not every AWS request requires a person to assume a role manually, and this is not a network topology.
The first boundary is obtaining the role session; the role's trust rules govern who may assume it. The second is the session's request to the resource. Its permissions and any other applicable policies determine whether that request is allowed. Being trusted to assume a role does not automatically grant access to all resources.
Users, Groups and Roles
An IAM user is an identity within an AWS account that can have long-term credentials. An IAM group collects IAM users so permissions can be managed for them together. A group is not a separate login and does not issue its own session credentials. Do not share one user's password as a substitute for a group.
An IAM role has permissions but is not permanently tied to one person. An allowed caller can assume it and receive temporary session credentials. Applications and AWS services can use roles too. This avoids treating permanent user access keys as the default way for every workload to obtain access.
When the analyst changes jobs, update their assigned access rather than widening everyone else's permissions. Identity lifecycle and permission scope need to follow actual work, not merely the date an account was created.
Policies Describe Requests, Not Job Titles
A policy expresses permissions for actions on resources, sometimes with conditions. Identity-based policies attach to identities; resource-based policies attach to supported resources. An IAM role trust policy is a resource-based policy governing who can assume the role.
For identity-based permissions, AWS managed policies are reusable policies maintained by AWS. Customer managed policies are reusable policies your organization maintains. Inline policies belong directly to one identity. "Custom" does not mean a separate permission language: a customer can author either a customer managed or an inline policy. Reusability is different from whether a policy is suitably restricted for this analyst.
Read a Small Permission Example
Amazon S3 stores data as objects in buckets. Suppose the analyst knows the exact
object names under a fictional bucket's approved/ prefix. The following
identity-policy excerpt permits retrieval there and explicitly denies deletion.
It is an original reading exercise, not a deployable access setup: the bucket,
role trust and every other applicable control are outside the excerpt.
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Action": "s3:GetObject",
"Resource": "arn:aws:s3:::vecta-learning-reports/approved/*"
},
{
"Effect": "Deny",
"Action": "s3:DeleteObject",
"Resource": "arn:aws:s3:::vecta-learning-reports/approved/*"
}
]
}
Effect says allow or deny; Action names the operation; Resource limits
which objects the statement concerns. An ARN is an AWS resource identifier.
Here * matches object names within the stated prefix, not every bucket.
The version string identifies the policy language, not a credential expiry date.
For this exercise, assume these are the only relevant permissions and no other control blocks an allowed read. Reading a known object in that prefix is allowed. Writing it has no allow and is implicitly denied. Deleting it matches an explicit deny. Listing a bucket is a different action, so this excerpt does not promise that browsing the S3 console will work.
In actual evaluation, AWS combines the applicable policy types. An applicable explicit deny overrides an allow. Do not infer full access from one matching allow while ignoring other policies, account restrictions or service conditions. The role itself also does not create a network connection to a private resource.
Check Your Understanding
Under the example's assumptions, can the analyst retrieve, overwrite and delete an approved report? If another applicable identity policy allows deletion of that same object while the deny remains, does deletion become permitted?
Answer and Reasoning
Retrieval is allowed by s3:GetObject. Overwrite requires a writing action that
has not been allowed, so the example denies it implicitly. Deletion is explicitly
denied by s3:DeleteObject. An additional allow does not override that applicable
deny. Read-only access fits the stated job; administrator access would introduce
unneeded actions rather than solve the original requirement precisely.
References
- S04: Domain 2 and S08: scope.
- S60: IAM identities and S63: roles.
- S61: Policies and permissions and S62: evaluation logic.
Sources checked on 24 September 2026. Read the excerpt conceptually; no AWS resource or permission change is needed.