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

Newly created non-admin users cannot access OnCall #3061

Closed
mderynck opened this issue Sep 25, 2023 · 1 comment
Closed

Newly created non-admin users cannot access OnCall #3061

mderynck opened this issue Sep 25, 2023 · 1 comment
Labels
bug Something isn't working part:auth/teams

Comments

@mderynck
Copy link
Contributor

What went wrong?

What happened:

  • A newly created user cannot access OnCall when they are not an admin, they instead get the error message:
    User is missing permission(s) plugins:write, org.users:read, teams:read, apikeys:create, apikeys:delete to setup OnCall before it can be used

What did you expect to happen:

  • When a new user is created as long as OnCall has been initialized once by an Admin newly created users should be able to access OnCall without needing an Admin to trigger user sync with the backend.

How do we reproduce it?

  1. Open Grafana OnCall with an Admin user, OnCall should load fine
  2. In Grafana settings create a new user with Editor or Viewer role
  3. Log out of the Admin account without visiting OnCall
  4. Log in with the newly created user and navigate to OnCall
  5. User will get the error message instead of OnCall loading

Grafana OnCall Version

v1.3.38

Product Area

Auth

Grafana OnCall Platform?

None

User's Browser?

No response

Anything else to add?

Until this is fixed a workaround is to visit OnCall with an Admin user after a new user has been created to ensure that user is sync'd with the backend before that user tries to use OnCall.

Also if 30 minutes elapse before between editor/viewer creation and the user login the backend will use a celery task to synchronize users which would achieve the same as the Admin navigating to OnCall.

@mderynck mderynck added the bug Something isn't working label Sep 25, 2023
@matiasb
Copy link
Contributor

matiasb commented Sep 3, 2024

This should have been fixed by the initialization rework (newly created users can now login and they are synced on-the-fly during auth if needed).

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

No branches or pull requests

3 participants