|
|
@ -327,7 +327,9 @@ public class UserManagementServiceImpl implements UserManagementService {
|
|
|
|
try {
|
|
|
|
try {
|
|
|
|
UserStoreManager userStoreManager = DeviceMgtAPIUtils.getUserStoreManager();
|
|
|
|
UserStoreManager userStoreManager = DeviceMgtAPIUtils.getUserStoreManager();
|
|
|
|
int userCount = userStoreManager.listUsers("*", -1).length;
|
|
|
|
int userCount = userStoreManager.listUsers("*", -1).length;
|
|
|
|
return Response.status(Response.Status.OK).entity(userCount).build();
|
|
|
|
BasicUserInfoList result = new BasicUserInfoList();
|
|
|
|
|
|
|
|
result.setCount(userCount);
|
|
|
|
|
|
|
|
return Response.status(Response.Status.OK).entity(result).build();
|
|
|
|
} catch (UserStoreException e) {
|
|
|
|
} catch (UserStoreException e) {
|
|
|
|
String msg = "Error occurred while retrieving the user count.";
|
|
|
|
String msg = "Error occurred while retrieving the user count.";
|
|
|
|
log.error(msg, e);
|
|
|
|
log.error(msg, e);
|
|
|
|