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

[Bug]: New users not able to see existing servers added by super user #585

Closed
aritraroy opened this issue Feb 16, 2025 · 2 comments
Closed
Labels
bug Something isn't working

Comments

@aritraroy
Copy link

Description

  1. I added several servers from my super user account in Beszel ([email protected]). It works perfectly.
  2. Not I enabled new user creation (USER_CREATION=true) and enabled Google OAuth login.
  3. Now one of my team member with Google account ([email protected]) logged in to Beszel.
  4. Login was successful but there were no servers that were showing to this user

Expected Behavior

  1. The new user should be able to see the existing servers already added to Beszel.
  2. It would be great if there is an option for the user to share this servers they added with other users of the same Beszel installation.
  3. It makes sense, otherwise all the new users have to add all the servers again.

Steps to Reproduce

Already mentioned the steps in the description section.

OS / Architecture

OS agnositc issue

Beszel version

0.9.1

Installation method

Docker

Configuration

Hub Logs

Agent Logs

@aritraroy aritraroy added the bug Something isn't working label Feb 16, 2025
@henrygd
Copy link
Owner

henrygd commented Feb 16, 2025

You can do this through PocketBase or the API. I've just added a bit about this to the docs: https://beszel.dev/guide/user-accounts#sharing-systems-with-multiple-users

If you want to set it up ahead of time you can add users with the same email before they've logged in.

There's a related feature request in #447 so I'll merge this with that one.

I may actually add a SHARE_ALL_SYSTEMS env var to enable sharing all systems with all users since this seems to be a common use case.

@henrygd henrygd closed this as completed Feb 16, 2025
@aritraroy
Copy link
Author

@henrygd Thank you for your response.

  1. Yes, adding a SHARE_ALL_SYSTEMS env variable can be a good option for now. If this is enabled, then every host added to Beszel will be available to all users registered in the system.

  2. Maybe in the future, you can consider having a better implementation. Here is an idea.

    • In the details page of each host, there can be a "Share' option. Clicking on it will open a modal.
    • The modal shows a list of all the registered users and the the access type we want to give them.
    • There can be three access type, "Owner", "Editor" and "Viewer"
      • "Owner" - The user who adds the host for the first time will be the owner of the host
      • "Editor" - Users having editor access will be able to delete the host, or change its notification settings and so on
      • "Viewer" - Users having viewer access will be able to only see the host metrics and nothing else.

The UI/UX and performance of Beszel is fantastic. Adding features like this will make the it even better.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants