Need some documentation to understand the API to be used to get list of all active and inactive user

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-02-2023 04:39 PM
Need some documentation to understand the API to be used to get list of all active and inactive users and their last login, we want to explicitly mark them inactive if not logged in last couple of days.
Labels:
- Labels:
-
Alfresco Process Services
1 REPLY 1
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-13-2023 08:59 AM
The UserService allows you to get all the active users in the following way:
If you need a list of users as result:
List<User> findUsers(String filter, boolean applyFilterOnEmail, String email, String externalId, String externalIdCaseInsensitive, UserStatus userStatus, AccountType accountType, String company, ArrayList<Long> groupIds, ArrayList<Long> userIds, Long tenantId, boolean includePrimaryGroups, Pageable pageable);
Or if you need just the number (long) of results for your query:
Long countUsers(String filter, boolean applyFilterOnEmail, String email, String externalId, String externalIdCaseInsensitive, UserStatus userStatus, AccountType accountType, String company, ArrayList<Long> groupIds, Long tenantId);
