How to show group created by me only in search?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-04-2017 10:29 AM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-20-2017 07:49 AM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-28-2017 08:39 AM
I have only postgres for groupdirectory not LDAP/Active Drectory
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-28-2017 08:59 AM
Hi, I solved this by making some changes as follows:
- created own bundle to override some actions & services of nuxeo.
- 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>`
- altered groups table added new column ownerId
- 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>
- overridden UserManager service to save ownerid while creating new group & to add ownerid filter while retrieving groups.
