@shahar3012 opened this issue on July 15th 2015

Hi, I'm using Piwik in my organization and we are interested in a self service option in Piwik. I think it should be implemented in a plugin that lets all logged in users to add new website to Piwik and grant them the admin permission for this specific site.

What do you think? I don't think it should be take long to develop this feature and it is very necessary.

Thank you.

@mattab commented on July 15th 2015

Hi @shahar3012

can you explain a bit more what your use case is?

Would you create a user yourself and then you want to let these users add new websites themselves?

@oparoz commented on July 16th 2015

I can see this being needed for a web host. Just like you create the main user account and allow the user to add x domains to his account, you could give the customer a Piwik user login and let him add and manage x domains under his account.

@shahar3012 commented on July 17th 2015

@mattab @oparoz

I'm using Piwik in a closed network and SSO using Kerberos. We have lots of sites in the closed network, so Piwik has a "big market" in my organization.

I'd like to let my users add new websites themselves. When a user adds new websites he/she granted with the admin permission instantly (on their website only).

That is the self service, nothing more. Everything can be done in a couple of days. Basicly what we need is to create a new page that lets them add the new website. One that is different than the Administration panel.

My use case is to provide Piwik as a self service to my organization. I will just maintain the servers and operate Piwik. My users will be able to add new websites themselves.

I would say it again, I'd like to see it developed as a plugin, and at first it doesn't have to be in the Core Plugins. I don't mind if it's beta version because it is very important to me to have this feature in the near future (in the next 2 weeks).

Thank you.

@Fensterbank commented on July 17th 2015

Hi @shahar3012,

so you have clear requirements and a clear deadline (next 2 weeks), but keep in mind that a Github issue is no task list and the users here doesn't offer coding service. ;-) So if you need this feature so soon, I think you have to write the plugin yourself.

But back to topic: If you have many websites in your organization, why don't you make another self service website? If you make a site with managed code (eg. aspx or php), you could use the secred token of an admin user and use it to create sites and set permissions via the API or a Library.

We made such a thing with a small .NET provisioning tool: Create the piwik site, give a reporting user read access to the site, create scheduled PDF reports for the created sites in context of our reporting user. Not exact your requirements, but technically you can do all what you want with the API.

@shahar3012 commented on July 17th 2015

@Fensterbank It would be nice to have it in the next 2 weeks, I know how Github works. I just mention it, so it will be taken seriously.

I believe that there should be a plugin for self service, not other site or other tool.

I can call the related API functions from the plugin with doAsSuperUser() function in a much more secure way than sending my admin token which is practically impersonate to another user. I want to do, just for this specific feature, an action as super user because it's the only way to add new websites.

@mattab @tsteur @diosmosis @mnapoli @sgiehl @JulienMoumne @halfdan I want to hear from the Piwik team what they think.

In my organization every user has a demo site to begin with (only view access), because every user that navigates to "myorg.piwik.something" automatically logged in with the Active Directory user. I have been requested to provide a self service to all the users, to let them add their websites by themselves.

If no one gives it a shot, I will...

@tsteur commented on July 20th 2015

I doubt anyone will give a shot on this soonish. I reckon it can be possible to do this in a separate plugin. You can create a new admin page to create new websites, add it to the admin menu and provide a separate API that let's you create a new website with less permissions than Admin.

@Fensterbank It would be nice to have it in the next 2 weeks, I know how Github works. I just mention it, so it will be taken seriously.

Just FYI: With something like this you rather achieve the opposite of taking this seriously as it is not realistic (unless you consider sponsoring this feature)

@shahar3012 commented on July 20th 2015

@tsteur I don't agree with you. This plugin can be done in a week top. I will develop it for my own use if no one else will, but I don't have the time right now.

This plugin should be like, that even when a user has noaccess permission, this option will be available to him / her. When the user has no websites, he or she could add new one and they become the admin of this website.

Same as for mobile application, so it basically a measureable.

In my organization I need piwik to be provided as a service that everyone can take advantage and use it for their own usage. Currently you aren't willing to understand that it will give Piwik a nice jump forward, because I believe more people would like to have this feature, rather than just little fixes almost all the time.

You guys did great job with the last release, but your most effort is to fix bugs and not enhancing the Piwik platform. In my point of view, you could put more time on adding new features (while others fix the bugs). As the core team, I think this is your role. If you want to provide the best analytics platform, I believe you should consider this suggestion. Maybe I'm wrong, I don't know, I just know that it's not enough. There are other open source projects that adding new feature every single week. It might be small things, but here it takes too long until we see new features, most of the time its just bug fixes.

One key point where Piwik succeed is in the plugin system. Because Piwik has it, I would say it a must that new feature will be easy to develop for Piwik as everything works as a plugin.

@tsteur commented on July 21st 2015

@tsteur I don't agree with you. This plugin can be done in a week top. I will develop it for my own use if no one else will, but I don't have the time right now.

Yes, it can be developed in a week maybe but we won't have the time as well. That's why I meant it is unrealistic. Should have explained it a bit.

If you want to provide the best analytics platform, I believe you should consider this suggestion.

We surely do consider this suggestion, we just get so many other suggestions as well and we cannot work on everything. I presume in this case only a very few users would benefit from this feature as it rather a custom requirement so we will most likely focus on features that benefits most users. That's why we often focus on our plugin system / platform so users can build it themselves when they have custom requirements and ideally share the plugin afterwards with other users via http://plugins.piwik.org . Documentation about plugin development is available on http://developer.piwik.org , we have many code generation commands to make it easier to develop a plugin for Piwik.

@shahar3012 commented on July 21st 2015

I understand. Please consider adding new features to Piwik and let other users fix the bugs. Or, make sure that contributors are writing tests. If the core team will work most of the time on bugs fixes, than the platform will evolve slowly. Correct me if I'm wrong.

@halfdan commented on July 21st 2015

If the core team will work most of the time on bugs fixes, than the platform will evolve slowly. Correct me if I'm wrong.

How do you get the feeling that the core team is only working on bug fixes? If you look at the changelog (http://piwik.org/changelog/) all recent versions introduced new features AND had bug fixes. Letting other users fix bugs is not only slow it also leaves possible security issues open. We usually let contributors write tests.

@mathias-b commented on April 8th 2016

Hello there,

Any new about this feature ? That will be really useful to my organisation. 👍

@pierreozoux commented on September 18th 2016

@shahar3012 did you end up doing it for your orga?

I'm also interested in such a feature. I don't have much resources, but I can participate in a bounty.

There is this, but I guess it is outdated? https://github.com/eristoddle/PiwikSignupPlugin

@shahar3012 commented on September 21st 2016

@pierreozoux I couldn't find the time to develop this feature in last year. I hear it from users from time to time that they would like to have a self service option. I believe we can create this plugin together with a little planning ahead so everyone would benefit from this feature.

Powered by GitHub Issue Mirror