Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Add 'group' field to Websites, to allow easier bulk access management #2042

Closed
mattab opened this Issue · 6 comments

1 participant

@mattab
Owner

When an agency uses Piwik to manage customers websites, there is often a relationship that one customer will have several websites.

It would be useful if Websites had a 'category' or 'group' attribute.

Then we add a new API to allow:

  • Fetch all websites from a given group (rather than selecting all websites and then filtering)

Other API changes:

  • addSite, updateSite should have a category parameter

Note

  • setting this parameter only possible by Super User

Use case:

  • create new user, need to set permissions
  • $idSites = fetch all websites belonging to a given customer (group == customerName)
  • call UsersManager.setUserAccess($newUser, 'view', $idSites)
@mattab
Owner

Notes

  • In the 'All Websites' dashboard, the Super User could see an aggregate number of visits/pages for the group. Websites would appear below their group row.
  • the Websites edit table will have anew column when Super User only
@mattab
Owner

(In [3786]) Refs #2042

  • Adding functionnality in API
@mattab
Owner

(In [3842]) Refs #2042 Adding SitesManager.getWebsitesGroups which returns the list of all website groups set

@mattab
Owner

(In [3844]) Naming consistency, not Websites but Sites refs #2042

@mattab
Owner

We might do the UI changes in All websites (add the column) but for now it's enough

@mattab
Owner

See #2174 for UI improvements

@mattab mattab added this to the Piwik 1.2 milestone
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.