I am using SAP Commerce Cloud 19.05 in my B2C project.We have certain custom itemtypes like:
XYZCompanyProduct
(extendsProduct
)XYZLaptopProduct
(extendsXYZCompanyProduct
)XYZMobileProduct
(extendsProduct
)
Now in the explorer tree, we have three nodes corresponding to the above nodes. We want certain users to have access to XYZLaptopProduct
and Orders
and Consignment
nodes and other nodes to be hidden when the user logs in.
We tried several ways of achieving this like:
- We created a Backoffice role for the laptop product users and a corresponding group to it(say
laptopGroups
). - In the
groups
section oflaptopGroups
we gave it access tobackofficeproductmanagergroup
and the above role. - The above step caused it to have access to multiple other product nodes, as well(like
XYZCompanyProduct
andXYZMobileProduct
) which is unwanted behaviour. I tried removing the nodes by:
<context component="explorer-tree" merge-by="principal" principal="laptopGroups"> <!-- other nodes... --> <navigation-node id="Restricted" merge-mode="remove"/> </context>
These steps seem to be all failing. Where am I going wrong? Should I approach this in a different way?