Opened 3 years ago

Closed 3 years ago

Last modified 3 years ago

#2042 closed New feature (fixed)

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

Reported by: matt Owned by:
Priority: normal Milestone: Piwik 1.2
Component: Core Keywords:
Cc: Sensitive: no

Description

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)

Change History (6)

comment:1 Changed 3 years ago by matt (mattab)

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

comment:2 Changed 3 years ago by matt (mattab)

(In [3786]) Refs #2042

  • Adding functionnality in API

comment:3 Changed 3 years ago by matt (mattab)

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

comment:4 Changed 3 years ago by matt (mattab)

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

comment:5 Changed 3 years ago by matt (mattab)

  • Resolution set to fixed
  • Status changed from new to closed

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

comment:6 Changed 3 years ago by matt (mattab)

  • Summary changed from Add 'category' field to Websites, to allow easier bulk access management to Add 'group' field to Websites, to allow easier bulk access management

See #2174 for UI improvements

Note: See TracTickets for help on using tickets.