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

Move MTM user restrictions to the general settings, instead of the user settings. #827

Open
Stan-vw opened this issue Jul 17, 2024 · 4 comments

Comments

@Stan-vw
Copy link

Stan-vw commented Jul 17, 2024

Currently, some MTM usage restrictions are available on a user level.

Observation: This creates a lot of manual work to managing large Matomo installations, and it's easy to miss/forget about the specific settings, and the reasons to make/keep them like that.

Suggestion: Move MTM user restrictions to the general settings (instead of user settings) so that they can be managed across the entire website efficiently.

Current config:
image

Suggested config:
image

Questions:

  1. Are there specific reasons this was done on a user level rather than a MTM-wide level based on roles?
  2. If yes, do these reasons weigh up against the added efficiency of managing it on a role level?
@AltamashShaikh
Copy link
Contributor

@tsteur Are you aware of any reason why this was done per user level ?

@sgiehl
Copy link
Member

sgiehl commented Jul 17, 2024

This was done on user level, as you might want specific users to be able to use the TagManager, while others shouldn't be able to. You might not want to give someone admin or write access to be able to use the TagManager.
We also can't change that easily, as it would be a breaking change.
What you could implement in TagManager is maybe an overview, that shows which users are currently allowed to use the TagManager in which way, and maybe give the possibility to apply the TagManager permissions to all users with a specific role.

A better solution might be to let the (super) user decide, if he wants to use TagManager permissions or grant those automatically to certain roles. But that would require something like: matomo-org/matomo#21175

@tsteur
Copy link
Member

tsteur commented Jul 17, 2024

@AltamashShaikh as Stefan says that's done for security reasons.
Say you have 30 users with write permissions. You don't want to give all of them access to do certain actions like publish new versions or write custom JavaScript etc. It'd be only very few people that should have this access.

And there is always the possibility that a user gives "Admin" permission and then the fine granular access isn't needed as they are included in that role.

@Stan-vw
Copy link
Author

Stan-vw commented Jul 17, 2024

Ah ok, yes I guess there is a "default permission level per role", such as admin users are able to publish but view users are not. This feature would effectively allow you to overwrite that, but I see that there's currently the hypothesis/insight that users prefer to do this on a personal level so they can differentiate better within certain levels (e.g. 1 admin can publish while the other cannot).

I'll leave this open as an idea, but it's unlikely it gets picked up until we get more clear interest from customers/users 👍

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

4 participants