Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Please count more different user types #432

Open
markuslf opened this issue Mar 10, 2023 · 2 comments
Open

Please count more different user types #432

markuslf opened this issue Mar 10, 2023 · 2 comments

Comments

@markuslf
Copy link

markuslf commented Mar 10, 2023

IMHO the code for "counting users" needs to be improved, especially when it comes to Nextcloud with a subscription key.

Have a look at the Nextcloud "support" app, lib/Service/SubscriptionService.php: It distinguishes and counts different types of users:

  • active users
  • seen users
  • admin users
  • backend users
  • disabled users
  • user count = all users - disabled users

So as a subscription holder and for resellers these values would be helpful (via API):

  • users_enabled: $this->config->getUsersForUserValue('core', 'enabled', 'true');
  • users_disabled: $this->config->getUsersForUserValue('core', 'enabled', 'false');
  • users_backend: Number of users from backends like LDAP
  • users_total: Total number of users known to Nextcloud, enabled and disabled, including users for each backend. Ideally, users_total is users_enabled + users_disabled (today this is called num_users, but I'm not sure if the number is correct)

And these for usage statistics:

  • users_seen_last5minutes: Currently this is activeUsers.last5minutes.
  • users_seen_last1hour: Currently this is activeUsers.last1hour.
  • users_seen_last24hours: Currently this is activeUsers.last24hours.
@markuslf markuslf changed the title Please provide the value for "Disabled Users" Please count more different user types Mar 10, 2023
@kesselb
Copy link
Collaborator

kesselb commented Mar 13, 2023

Hi @markuslf,

Would you mind submitting a ticket via customer portal or email to support and reference this GitHub issue?

@markuslf
Copy link
Author

markuslf commented Mar 14, 2023

Done via ticket at https://portal.nextcloud.com, referencing this one here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants