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

Multisites API-call for users with view permission requires an unnecessary idSite parameter #10244

Closed
mwarmoeskerken opened this issue Jun 20, 2016 · 2 comments
Labels
answered For when a question was asked and we referred to forum or answered it.

Comments

@mwarmoeskerken
Copy link

mwarmoeskerken commented Jun 20, 2016

I'm using Excel to extract data from Piwik using the API. Currently I'm working on a dashboard for which I need to get the data for all websites that the end-user has access to. These end-users have view-permissions, and strangely - the API call for the MultiSites.getAll is requesting an idSite parameter when calling the API-command with view-only credentials. An error message is returned stating that the idSite parameter is missing. However, it shouldn't be necessary because a list of sites is queried, and not the parameters for a specfic site. Users with superadmin rights are not affected.

Could the API be updated where the idSite for the view-credential-users is not neccessary?

@tsteur
Copy link
Member

tsteur commented Jun 25, 2016

I can't reproduce this with latest Piwik 2.16.1. I'm only getting an error if there is no valid token_auth provided, or if the user of the token_auth does actually not have permission to any site.

@mwarmoeskerken
Copy link
Author

Hi tsteur, thanks for your quick research into this issue. We run 2.16.0, so I'll wait and check again when we upgraded to 2.16.1.

@tsteur tsteur added the answered For when a question was asked and we referred to forum or answered it. label Jun 29, 2016
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