cancel
Showing results for 
Search instead for 
Did you mean: 

How to restrict Impex Import/Export wizard from opening for specific users in Backoffice?

Former Member

Hi Experts

We have requirement in which we have to Import restrict "System" explorer tree options from Backoffice for lets say CMSmanagerGroup. We have restricted it using User Rights impexes but still wizards keep on opening and is clickable. This is the case with all the wizards that open in a Popup like Solr Indexer, Import export Wizards etc. In the screenshot attached you see Impex Import popup,i want this to be disabled for CMSManagerUser. Can anyone guide me as to what is required to disable these wizards for particular user groups? Some documented reference will be great.

Thanks

Accepted Solutions (0)

Answers (3)

Answers (3)

pavanka
Discoverer
0 Kudos

Here is the solution for it (https://help.sap.com/docs/SAP_COMMERCE/5c9ea0c629214e42b727bf08800d8dfa/8c282d8686691014b54f95ffbf322a6b.html?q=disable%20navigation-node%20)

<config xmlns="http://www.hybris.com/cockpit/config">
                            <context merge-by="principal" component="explorer-tree" principal="restrictedEmployee">
                            <n:explorer-tree xmlns:n="http://www.hybris.com/cockpitng/config/explorertree">
                            <n:navigation-node id="hmc_treenode_catalog">
                            <n:type-node code="Product" id="hmc_typenode_product" merge-mode="remove"/>
                            <n:type-node code="Unit" id="hmc_typenode_unit" merge-mode="remove"/>
                            <n:type-node code="Catalog" id="hmc_typenode_catalog" merge-mode="remove"/>
                            </n:navigation-node>
                            <n:navigation-node id="hmc_treenode_system" merge-mode="remove"/>
                            <n:navigation-node id="hmc_treenode_medias" merge-mode="remove"/>
                            </n:explorer-tree>
                            </context>
                            </config>
Former Member
0 Kudos

For specific role cxmanager/admin disables Import,Export and ScriptGenerator: Make context tag and put explorer tree tag in it.............................. context component="explorer-tree" principal="cxmanager" merge-by="module"

         <explorer-tree:navigation-node id="hmc_treenode_system" >
             <explorer-tree:navigation-node id="hmc_treenode_systemtools">
                 <explorer-tree:type-node code="SavedValues" id="hmc_typenode_savedvalues"/>
                 <explorer-tree:navigation-node id="hmc_treenode_impex_import_wizard" merge-mode="remove" />
                 <explorer-tree:navigation-node id="hmc_treenode_impex_export_wizard" merge-mode="remove" />
                 <explorer-tree:navigation-node id="hmc_treenode_script_generator_wizard" merge-mode="remove"/>
             </explorer-tree:navigation-node>
         </explorer-tree:navigation-node>
   
former_member679962
Active Participant
0 Kudos

Hi,

Import node is not a TypeNode, meaning you cannot restrict access to it with user rights. You should be able to restrict access with targeted cockpit-config.xml configuration though. It is possible to add configuration with context pointing to specific principal, principal being e.g. usergroup of type BackofficeRole. And as explorer-tree nodes are mergeable by id (as described in documentation) you should be able to remove them. An example would look like this:

 <context component="explorer-tree" principal="somebackofficeroleusergroup" merge-by="module">
   <explorer-tree:explorer-tree>
         <explorer-tree:navigation-node id="hmc_treenode_systemtools">
             <explorer-tree:navigation-node id="hmc_treenode_impex_import_wizard" merge-mode="REMOVE" />
         </explorer-tree:navigation-node>
     </explorer-tree:explorer-tree>
 </context>

Please let me know if it works for you.

Cheers,
Marcin

Former Member
0 Kudos

Hi Marcin,

      <explorer-tree:navigation-node id="hmc_treenode_systemtools">
          <explorer-tree:navigation-node id="hmc_treenode_impex_import_wizard" merge-mode="REMOVE" />
      </explorer-tree:navigation-node>
  </explorer-tree:explorer-tree>
 

This is not worked for me. Please suggest me on this. I need this one.

former_member679962
Active Participant
0 Kudos

Well, what you've pasted here is not enough to say anything. Please paste your <context> line and the content of your extensioninfo.xml file.

Former Member
0 Kudos

Hello, The above snippet is not working. Please find the snippet below: I have to disable it for cxgroup tried cxmanagergroup and also cxusergroup, this actually leaves System with only Search and Navigation and rest nothing is available in that section. Doesnot disable ImpEx import wizard in specific. and this change is visible for admin. context component="explorer-tree" principal="cxusergroup" merge-by="module"


                 <explorer-tree:type-node code="SavedValues" id="hmc_typenode_savedvalues" merge-mode="REMOVE" />
                 <explorer-tree:navigation-node id="hmc_treenode_impex_import_wizard" merge-mode="REMOVE" />
                 <explorer-tree:navigation-node id="hmc_treenode_impex_export_wizard" merge-mode="REMOVE"/>
                 <explorer-tree:navigation-node id="hmc_treenode_script_generator_wizard" merge-mode="REMOVE"/>
             </explorer-tree:navigation-node>