Join our Newsletter — 33% off our NHI Course
Home› Glossary› Governance, Ownership & Risk› AWS API Endpoint ListUsers
Governance, Ownership & Risk

AWS API Endpoint ListUsers

← Back to Glossary
By NHI Mgmt Group Updated November 25, 2026 Domain: Governance, Ownership & Risk

AWS API Endpoint ListUsers is the IAM API call that returns a list of IAM users in an AWS account. It is used to enumerate user identities and their metadata, and access to it is controlled by IAM permissions on the caller’s identity or role.

What this API call represents in practice

ListUsers is not a generic inventory call, it is a direct account-level enumeration interface for IAM users. That makes it useful for audits, troubleshooting, and security review, but it also means the response itself is sensitive because it reveals the existence, naming, and metadata of user identities in the account.

Because the call is governed by IAM permissions on the caller, it sits inside the broader access-control model rather than being an open discovery endpoint. In practice, it helps operators answer a simple but important question: which human or programmatic identities exist here, and what metadata is exposed about them?

Why enumeration matters for security

User enumeration is valuable to defenders because it supports inventory, ownership review, and privilege analysis. It is also valuable to attackers because it reduces guesswork: once user identities are known, follow-on activity such as password spraying, phishing, or targeted privilege mapping becomes easier to plan.

That is why the control objective is not only “can the API be called,” but “who can learn account identity structure from it.” The OWASP API Security Top 10 is relevant here because API exposure, broken authorisation, and excessive visibility are recurring patterns whenever an endpoint reveals security-sensitive objects.

How organisations should think about exposure

Exposure review starts with knowing which principals can invoke the API, where those principals are used, and whether the permission is granted broadly through roles or inherited policies. If the permission is wider than necessary, the call becomes a low-friction reconnaissance source for anyone with legitimate but overly broad AWS access.

How to audit API gateway keys and usage plans is not about IAM itself, but it is a useful reminder that API inventory and ownership review are operational disciplines, not one-time checks. The same logic applies here: enumerate who can call identity-returning APIs, validate why they need that access, and confirm the access path is still current.

Control and review implications for IAM operations

For defenders, the practical value of ListUsers is strongest when it is used as part of routine access governance, not as an ad hoc lookup. It helps confirm whether the user population matches expectations, whether stale identities remain present, and whether the account contains unexpected users that may indicate poor lifecycle management or manual drift.

At the same time, the endpoint’s sensitivity means it should be treated as a visibility boundary. If you allow broad read access to identity metadata, you are effectively expanding the internal attack surface, especially in large environments where many operators, tools, and automation roles can reach IAM APIs.

Risk and Threat Considerations

ListUsers creates reconnaissance value because it can disclose the shape of the identity estate to any caller with permission. That information can help an attacker refine phishing targets, identify high-value naming patterns, and distinguish active users from service-oriented accounts or stale entries.

Failure mechanism: Excessive or poorly reviewed IAM permissions expose identity inventory data to more principals than intended, turning a benign administrative query into a discovery primitive for abuse and targeting.

Impact: Compromise paths become easier to plan, identity hygiene issues become more visible to attackers, and follow-on attacks can be better targeted against real users and operational roles.

Standards & Framework Alignment

This section maps relevant standards and security frameworks to the operational risks and controls described in this guidance.

OWASP API Security Top 10 addresses the attack and risk surface, while NIST SP 800-53 Rev 5 and CIS Controls v8 set the governance and control requirements practitioners need to meet.

FrameworkControl / ReferenceRelevance
OWASP API Security Top 10API5 — Broken Function Level AuthorizationThis endpoint exposes identity-listing functionality that must be permissioned at the function level.
Recommendation — Enforce deny-by-default on identity-listing APIs and test for unauthorized function access.
NIST SP 800-53 Rev 5IA-5 — Authenticator ManagementListUsers exposes identity administration data that should be governed alongside credential lifecycle controls.
Recommendation — Restrict and review access to identity-management APIs as part of credential and account governance.
CIS Controls v8CIS-5 — Account ManagementThe call is used to enumerate and review user accounts, which is central to account inventory and governance.
Recommendation — Inventory user accounts and regularly review who can enumerate account identity data.

Practitioner Guidance

Why practitioners should care: Treat this API as part of your identity inventory surface, not just as a convenience function. If many roles can call it, you may be leaking more organisational structure than you realise.

Governance implication: Review which human and automation roles can invoke identity-enumeration APIs, and keep the permission aligned to a clear operational need rather than default read access.

Practitioner takeaway: The safest posture is to assume that any identity-listing API can become intelligence for attackers, so its access should be justified, monitored, and periodically revalidated.

Free weekly newsletter

Subscribe to the NHI & AI Identity Journal

The latest on NHI and Agentic AI security – articles, research, breaches, news and events every week.

Bonus 33% off our NHI Course when you subscribe.

NHIMG Editorial Note
Reviewed and updated by the NHIMG editorial team on November 25, 2026.
NHI Mgmt Group — the #1 independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org