How to show group created by me only in search?

Hi, I want to show group created by me only in search suggestion while adding permission on work space. How can I do this? plz find attachment of image where I want to suggestion of those group which created by me only.

0 votes

2 answers

1559 views

ANSWER



Hi, I solved this by making some changes as follows:

  1. created own bundle to override some actions & services of nuxeo.
  2. overridden group schema to add ownerId in that. With the help of https://doc.nuxeo.com/nxdoc/how-to-add-new-fields-to-the-user-profile-or-group-profile/

<?xml version="1.0"?> <xs:schema targetNamespace="http://www.nuxeo.org/ecm/schemas/group" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:nxs="http://www.nuxeo.org/ecm/schemas/group"> <xs:include schemaLocation="base.xsd" /> <xs:element name="groupname" type="xs:string" /> <xs:element name="grouplabel" type="xs:string" /> <xs:element name="description" type="xs:string" /> <!-- references --> <xs:element name="members" type="nxs:stringList" /> <xs:element name="subGroups" type="nxs:stringList" /> <!-- inverse reference --> <xs:element name="parentGroups" type="nxs:stringList" /> <!-- multi tenant --> <xs:element name="tenantId" type="xs:string" /> <xs:element name="ownerid" type="xs:string" /> </xs:schema>

  1. altered groups table added new column ownerId

  2. created new menu to show group by creating new action

    `<action id=“VirtualGroupsManager” link=“/users/view_groups.xhtml”

        label="label.groupManager.groups" type="admin_rest_document_link"
        order="40">
        <category>NUXEO_ADMIN</category>
        <filter-id>user_manager</filter-id>
        <filter-id>not_readonly</filter-id>
    

    `

  3. overridden UserManager service to save ownerid while creating new group & to add ownerid filter while retrieving groups.

0 votes



There's no record of who created a group. Indeed in some cases they come from an external system (LDAP, Active Directory). So what you're suggesting is not possible.

0 votes



I have only postgres for groupdirectory not LDAP/Active Drectory
09/28/2017