I've noticed that admin users can see all the users logged in, and give the admin ability to kick off users. But main issue is if you are not admin, you don't see any list of users.
What i want to do is display the users to a regular user whom are logged in. This is to create a process where we're running out of slots and some users don't log out.
I would rather upgrade my user slot count at a premium price but I suppose there is no option for that, but rather to spend a significant amount more to upgrade the the next package. We'd rather pay for more slots vs an entire feature set we likely won't use (yet).
So I'm trying to recreate this feature.
var userManager = UserManager.GetManager();
var users = userManager.GetUsers().OrderBy(user => user.UserName).ToList();
var usersLoggedIn = users.Where(user => user.IsLoggedIn).ToList();
But I seem to get almost 38 users. Now, I looked at the database, and did a select by
SELECT * FROM [sf635000_intranet].[dbo].[sf_users]
WHERE is_logged_in = 1 ORDER BY last_login_date DESC
But there I know some users logged out, which would explain why this select statement fails. I could have someone who's listed as the 8th row, but they still show as logged in on the CMS. Isn't there a 'last_logged_out' column I could use?
What would the proper API method be to get 'the currently logged in users'??