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.
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
andMarker
parameters.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);
ListUsersCommandInput for command's
input
shape.ListUsersCommandOutput for command's
response
shape.config for IAMClient's
config
shape.