Uploaded image for project: 'XWiki Platform'
  1. XWiki Platform
  2. XWIKI-7648

Display workspace members in the new User Directory based on a user's membership to the workspace group (workspace:XWiki.XWikiAllGroup)

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 4.0-milestone-1
    • Fix Version/s: 4.0-milestone-2
    • Component/s: {Unused} Workspaces
    • Labels:
      None
    • keywords:
      workspace user directory results override
    • Difficulty:
      Unknown
    • Similar issues:

      Description

      Because workspaces have a more sensible membership relationship (membership to the workspace group), the new User Directory can no longer display users based on the default membership relationship (Pages with XWikiUsers objects).

      To accomodate this, the workspace-template-features package will provide an override UserDirectoryLivetableResults page that will properly build the query to be used by the workspace's User Directory.

      The idea is that this query will display all global direct and indirect users that are members of the workspace's group. Indirect users means all global users that are members of a global group that is also a subgroup of the workspace's group. The subgroups are explored recursively, down the subgroup levels and only global groups are considered.

      Example:

      Workspace A group's members: (absolute references, since this is a workspace)
      xwiki:XWiki.Joe
      xwiki:XWiki.Bob
      xwiki:XWiki.Management (this is a group)

      xwiki:XWiki.Management members: (relative references, since the group is in the main wiki)
      XWiki.Daniel
      XWiki.Tim
      XWiki.HR (this is a group)

      xwiki:XWiki.HR members: (referenced relatively, since the group is in the main wiki)
      XWiki.Jane
      XWiki.Alice

      Workspace A's User directory will list:
      xwiki:XWiki.Joe
      xwiki:XWiki.Bob
      xwiki:XWiki.Daniel
      xwiki:XWiki.Tim
      xwiki:XWiki.Jane
      xwiki:XWiki.Alice

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              enygma Eduard Moraru
              Reporter:
              enygma Eduard Moraru
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Date of First Response: