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.
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/
<?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>
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>
`
overridden UserManager service to save ownerid while creating new group & to add ownerid filter while retrieving groups.