- Get Started
- Product
- Resources
- Tools & SDKs
- Framework
- Reference
- User Guide
Menu
- Get Started
- Product
- Resources
- Tools & SDKs
- Framework
- Reference
- User Guide
listAndCountUsers - User Module Reference
This documentation provides a reference to the listAndCountUsers
method. This belongs to the User Module.
Note: You should only use this methods when implementing complex customizations. For common cases, check out available workflows instead.
This method retrieves a paginated list of users along with the total count of available users satisfying the provided filters.
Example#
To retrieve a list of users using their IDs:
By default, only the first 15
records are retrieved. You can control pagination by specifying the skip
and take
properties of the config
parameter:
Parameters#
The filters to apply on the retrieved users.
The configurations determining how the user is retrieved. Its properties, such as select
or relations
, accept the
attributes or relations associated with a user.
select
or relations
, accept the
attributes or relations associated with a user.Returns#
Promise
Promise<[UserDTO[], number]>The list of users along with their total count.
Promise
Promise<[UserDTO[], number]>Was this page helpful?