Sierra API : add /users/groups/ endpoint to "GET number of users by group"
It can be useful to check the number of users in each group currently logged in to Sierra. In our case, there is a self-checkout group that should have a specific number of logged-in users throughout the day that requires monitoring.
The number of users in each group logged in to Sierra over the course of the day is available by SSH (in Admin Corner, "Number of INNOVATIVE users by hour").
Monitoring this information in an automated way is not straightforward. Admin corner can send an email, but only from an interactive SSH session. It is possible to automate an SSH session with a script, but this is complicated. Right now, I have to manually login to Admin Corner and enter an obscure sequence of keystrokes to get this information and even then the data is only aggregated once per hour. Only staff with Admin Corner access are able to perform this monitoring, which takes time away from other duties.
Enhancing the /users API to add a new endpoint (e.g., GET /users/groups/{group}) which returns the number of users by group would make monitoring user groups much easier. Indeed, it could make user groups more useful broadly speaking.
In our case, polling such an API periodically would empower us to act when there are too few (or too many!) self-checkout users logged in. The same concept would apply to other user groups that merit monitoring for operational reasons.
Alternatively, a built-in Sierra feature that sends a notification when the number of logged-in users per group is greater or less than arbitrarily defined values would be helpful for my specific use case.
