Options
All
  • Public
  • Public/Protected
  • All
Menu

Class ListUsersCommand

Lists the IAM users that have the specified path prefix. If no path prefix is specified, the operation returns all users in the Amazon Web Services account. If there are none, the operation returns an empty list.

IAM resource-listing operations return a subset of the available attributes for the resource. For example, this operation does not return tags, even though they are an attribute of the returned object. To view all of the information for a user, see GetUser.

You can paginate the results using the MaxItems and Marker parameters.

example

Use a bare-bones client and the command you need to make an API call.

import { IAMClient, ListUsersCommand } from "@aws-sdk/client-iam"; // ES Modules import
// const { IAMClient, ListUsersCommand } = require("@aws-sdk/client-iam"); // CommonJS import
const client = new IAMClient(config);
const command = new ListUsersCommand(input);
const response = await client.send(command);
see

ListUsersCommandInput for command's input shape.

see

ListUsersCommandOutput for command's response shape.

see

config for IAMClient's config shape.

Hierarchy

Implements

Index

Constructors

Properties

Constructors

constructor

Properties

Readonly input

input: ListUsersCommandInput

Readonly middlewareStack

middlewareStack: IMiddlewareStack<ListUsersCommandInput, ListUsersCommandOutput>