cancel
Showing results for 
Search instead for 
Did you mean: 

How to show group created by me only in search?

Santosh_Yadav
Champ on-the-rise
Champ on-the-rise

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.

3 REPLIES 3

Florent_Guillau
World-Class Innovator
World-Class Innovator

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.

I have only postgres for groupdirectory not LDAP/Active Drectory

Santosh_Yadav
Champ on-the-rise
Champ on-the-rise

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/

` <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" />

<xs:element name="members" type="nxs:stringList" /> <xs:element name="subGroups" type="nxs:stringList" />

<xs:element name="parentGroups" type="nxs:stringList" />

<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> </action>

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