Skip to content

Commit

Permalink
Use new total user count method for groups only for JDBC userstores.
Browse files Browse the repository at this point in the history
  • Loading branch information
dhaura committed Apr 3, 2024
1 parent 6971d70 commit dbd790b
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1446,8 +1446,10 @@ private UsersGetResponse filterUsersBySingleAttribute(ExpressionNode node, Map<S
maxLimit = Math.max(maxLimit, limit);
}
// Get total users based on the filter query without depending on pagination params.
if (SCIMCommonUtils.isGroupBasedUserFilteringImprovementsEnabled()) {
if (SCIMCommonUtils.isGroupBasedUserFilteringImprovementsEnabled() &&
(isJDBCUSerStore(domainName) || isAllConfiguredUserStoresJDBC())) {
// Get the total user count by the filter query.
// This is only implemented for JDBC userstores.
totalResults += getUserCountByAttribute(node, 1, maxLimit, sortBy, sortOrder, domainName);
} else {
totalResults += filterUsers(node, 1, maxLimit, sortBy, sortOrder, domainName).size();
Expand Down

0 comments on commit dbd790b

Please sign in to comment.