list_users
async
¶
list_users(
identity_store_id: IdentityStoreId,
*,
config_overrides: Optional[AsyncidentitystoreClientConfig] = None,
extensions: Optional[ExtensionNames] = None,
max_results: Optional[MaxResults] = None,
next_token: Optional[NextToken] = None,
filters: Optional[Filters] = None,
) -> ListUsersResponse
Lists all users in the identity store. Returns a paginated list of complete User objects. Filtering for a User by the UserName attribute is deprecated. Instead, use the GetUserId API action.
If you have access to a member account, you can use this API operation from the member account. For more information, see Limiting access to the identity store from member accounts in the IAM Identity Center User Guide.
Parameters:
-
identity_store_id(IdentityStoreId) –The globally unique identifier for the identity store, such as
d-1234567890. In this example,d-is a fixed prefix, and1234567890is a randomly generated string that contains numbers and lower case letters. This value is generated at the time that a new identity store is created.You can specify the identity store by ID or by Amazon Resource Name (ARN). For example, identity store ID
d-1234567890or identity store ARNarn:aws:identitystore::111122223333:identitystore/d-1234567890. -
extensions(Optional[ExtensionNames], default:None) –A collection of extension names indicating what extensions the service should retrieve alongside other user attributes.
aws:identitystore:enterpriseis the only supported extension name. -
max_results(Optional[MaxResults], default:None) –The maximum number of results to be returned per request. This parameter is used in all
Listrequests to specify how many results to return in one page. -
next_token(Optional[NextToken], default:None) –The pagination token used for the
ListUsersandListGroupsAPI operations. This value is generated by the identity store service. It is returned in the API response if the total results are more than the size of one page. This token is also returned when it is used in the API request to retrieve the next page of results. -
filters(Optional[Filters], default:None) –A list of
Filterobjects, which is used in theListUsersandListGroupsrequests.
Raises:
-
AccessDeniedException–You do not have sufficient access to perform this action.
-
InternalServerException–The request processing has failed because of an unknown error, exception or failure with an internal server.
-
ThrottlingException–Indicates that the principal has crossed the throttling limits of the API operations.
-
ResourceNotFoundException–Indicates that a requested resource is not found.
-
ValidationException–The request failed because it contains a syntax error.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_identitystore/_services/async_identitystore.py
1640 1641 1642 1643 1644 1645 1646 1647 1648 1649 1650 1651 1652 1653 1654 1655 1656 1657 1658 1659 1660 1661 1662 1663 1664 1665 1666 1667 1668 1669 1670 1671 1672 1673 1674 1675 1676 1677 1678 1679 1680 1681 1682 1683 1684 1685 1686 1687 1688 1689 1690 1691 1692 1693 1694 1695 1696 1697 1698 1699 1700 1701 1702 1703 1704 1705 1706 1707 1708 1709 1710 1711 1712 1713 1714 1715 1716 1717 1718 1719 1720 1721 1722 1723 | |