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

[synergy][Cozy] Export of user data could be made accessible to Cozy #12193

Closed
jibe-b opened this issue Oct 13, 2017 · 14 comments
Closed

[synergy][Cozy] Export of user data could be made accessible to Cozy #12193

jibe-b opened this issue Oct 13, 2017 · 14 comments
Labels
answered For when a question was asked and we referred to forum or answered it.

Comments

@jibe-b
Copy link

jibe-b commented Oct 13, 2017

Cozy is a self-hosted cloud service which has connectors to call user's data back.

Analytics data are of this type, in particular with the application of the GDPR coming soon.

As far as I know (I haven't been really deep into Piwik's code, so I might not have found something already existing), user data can be selected (when logged, or associated to an IP), as well as exported.

An option to connect to Cozy would to enable to export one's data (let's say, the ones associated to a login) so that a Cozy connector can call them back for a user.

cc @doubleface

@jibe-b
Copy link
Author

jibe-b commented Oct 13, 2017

@jibe-b
Copy link
Author

jibe-b commented Oct 15, 2017

Related to #6095 (and probably others, I will dive into the issues to gather some more, as a first step in the Piwik community)

@mattab
Copy link
Member

mattab commented Oct 16, 2017

Hi @jibe-b
This sounds like a good idea, but shouldn't this issue be created in Cozy project rather than in Piwik here?

@jibe-b
Copy link
Author

jibe-b commented Oct 17, 2017

@mattab I wanted to know if it was easily feasible on the Piwik side, as the admin of a Piwik instance will in definitive be the one that opens the tap of this data.

Indeed, I proposed the idea and will advance this more with the Cozy team.

@mattab
Copy link
Member

mattab commented Oct 17, 2017

Yes, it should be easy to call Piwik APIs to get any data you want. Learn more here: http://developer.piwik.org/api-reference/reporting-api
or here: https://piwik.org/docs/analytics-api/

if you want to export one user's data you can use the Live APIs

@mattab mattab closed this as completed Oct 17, 2017
@mattab mattab added the answered For when a question was asked and we referred to forum or answered it. label Oct 17, 2017
@jibe-b
Copy link
Author

jibe-b commented Oct 17, 2017

Super, thank you for helping the damn too lazy guy that I am ;)

@jibe-b
Copy link
Author

jibe-b commented Nov 6, 2017

@mattab I see the four levels of right a user may have (no access, view, management, superuser)

But I don't find the possibility to restrict what a user with the view rights can access (here, the Visiter Profile associated to her email address).

Note: I consider a situation in which a SSO and Piwik users are created with the SSO email adresses/usernames.

@mattab
Copy link
Member

mattab commented Nov 6, 2017

it is not possible to restrict further what a user can see. Typically you'd have a secret token auth and you could serve a particular user's data (Visitor profile for their email address) to them, without revealing the full token

@jibe-b
Copy link
Author

jibe-b commented Nov 7, 2017

I think I got the big picture but if I can rephrase, you suggest to add a "Download visitor profile" on my website which takes the infos of the authenticated user, using a piwik_user specific to this task and return the data to the user.

I want the least possible to add any layer of complexity to the API. This would ease the creation of a Piwik connector/collector for Cozy (get the Visitor profile of a user through the Piwik API for any Piwik instance (letting each Piwik instance handle user management by its own))

@mattab
Copy link
Member

mattab commented Nov 7, 2017

We probably will do something similar for GDPR compliance. Stay tuned on this...

@jibe-b
Copy link
Author

jibe-b commented Nov 7, 2017

Indeed ;)

Is there already an issue to follow about this? Should I open one?

@jibe-b
Copy link
Author

jibe-b commented Nov 7, 2017

I would like to follow closely how this will/may be implemented,

as I will start developing a Cozy collector/connector for Piwik (as a way on training on cozy stack), which will have to wait for this right management feature to be usable. I will indeed update it to the way the API will be modified.

@jibe-b
Copy link
Author

jibe-b commented Nov 7, 2017

Development of this konnector will be here https://github.com/jibe-b/cozy-konnector-piwik

@jibe-b
Copy link
Author

jibe-b commented Nov 17, 2017

Made a first step, available in file index.js on branch https://github.com/jibe-b/cozy-konnector-piwik/tree/first-steps-toward-full-featured-konnector.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
answered For when a question was asked and we referred to forum or answered it.
Projects
None yet
Development

No branches or pull requests

2 participants