List Users
cognitoidentityprovider_list_users | R Documentation |
Lists users and their basic details in a user pool¶
Description¶
Lists users and their basic details in a user pool.
Amazon Cognito evaluates Identity and Access Management (IAM) policies in requests for this API operation. For this operation, you must use IAM credentials to authorize requests, and you must grant yourself the corresponding IAM permission in a policy.
Learn more
Usage¶
cognitoidentityprovider_list_users(UserPoolId, AttributesToGet, Limit,
PaginationToken, Filter)
Arguments¶
UserPoolId |
[required] The ID of the user pool on which the search should be performed. |
AttributesToGet |
A JSON array of user attribute names, for example
Use |
Limit |
Maximum number of users to be returned. |
PaginationToken |
This API operation returns a limited number of results. The pagination token is an identifier that you can present in an additional API request with the same parameters. When you include the pagination token, Amazon Cognito returns the next set of items after the current list. Subsequent requests return a new pagination token. By use of this token, you can paginate through the full list of items. |
Filter |
A filter string of the form
If the filter string is empty, You can only search for the following standard attributes:
Custom attributes aren't searchable. You can also list users with a client-side filter. The server-side
filter matches no more than one attribute. For an advanced search, use a
client-side filter with the For more information about server-side and client-side filtering, see FilteringCLI output in the Command Line Interface User Guide. For more information, see Searching for Users Using the ListUsers API and Examples of Using the ListUsers API in the Amazon Cognito Developer Guide. |
Value¶
A list with the following syntax:
list(
Users = list(
list(
Username = "string",
Attributes = list(
list(
Name = "string",
Value = "string"
)
),
UserCreateDate = as.POSIXct(
"2015-01-01"
),
UserLastModifiedDate = as.POSIXct(
"2015-01-01"
),
Enabled = TRUE|FALSE,
UserStatus = "UNCONFIRMED"|"CONFIRMED"|"ARCHIVED"|"COMPROMISED"|"UNKNOWN"|"RESET_REQUIRED"|"FORCE_CHANGE_PASSWORD"|"EXTERNAL_PROVIDER",
MFAOptions = list(
list(
DeliveryMedium = "SMS"|"EMAIL",
AttributeName = "string"
)
)
)
),
PaginationToken = "string"
)
Request syntax¶
svc$list_users(
UserPoolId = "string",
AttributesToGet = list(
"string"
),
Limit = 123,
PaginationToken = "string",
Filter = "string"
)