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

    • workspace user directory results override
    • Unknown

    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

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

              Dates

                Created:
                Updated:
                Resolved: