cancel
Showing results for 
Search instead for 
Did you mean: 

Restricting User Access to specific navigation node in backoffice

Former Member
0 Kudos

Hi,

We are customizing backoffice to show the specific sections within backoffice to a user.

For instance; an SEO guy can only see a custom item type displayed in explorer tree. He should not be able to see the other items.

We also need a way to assign backoffice roles to the users to restrict. How do we restrict this to the user?

Saurabh

Accepted Solutions (1)

Accepted Solutions (1)

former_member638520
Contributor
0 Kudos

Disabled node means that your user doesn't have access to this type. You can change it as follows: User -> User Groups -> (select your 'backofficerole1') -> Open 'Key' action (Principal Permission Action) -> Add SEOConfiguration and assign appropriate permissions

Former Member
0 Kudos

It worked post your changes request. I created a custom back office role and in access rights tab in HMC, I added the custom item type and it worked.

However, I now want to enable the OOTB item types available to this user.

For instance; under System > Facet Search Conciguration.

How can I configure visibility and access of this item type to the user?

former_member638520
Contributor
0 Kudos

Yes, of course. Navigate to : System -> Types -> select your type -> click on 'key' action ( (Principal Permission Action) -> Assign appropriate groups or users

Answers (4)

Answers (4)

former_member625836
Active Contributor
0 Kudos

Hi!

Node in ExplorerTree is disabled when a user has no read-rights for specified type. Check if backofficerole1 has right to read SEOConfiguration.

Best regards, Jacek

former_member638520
Contributor
0 Kudos

Hi,

I've checked your code snippet:

  <context component="explorer-tree" merge-by="principal" principal="backofficerole1">
           <n:explorer-tree xmlns:n="http://www.hybris.com/cockpitng/config/explorertree">
               <n:navigation-node id="SEO Configuration">
                   <n:type-node id="SEOConfiguration" code="SEOConfiguration" />
               </n:navigation-node>
           </n:explorer-tree>
       </context>

And tree node is visible only for testuser. Important question is: Did you create 'backofficerole1' as a backoffice role? You can check it as follows:

User -> User Groups -> (select backofficerole1) -> Administration tab -> Metadata -> Type (it should be equal to 'BackofficeRole')

Regards

Lukasz

Former Member
0 Kudos

Yes I created 'backofficerole1' as a backoffice role. Test user has been assigned this role and I was expecting it to see the custom item type which I created which is not happening.

former_member625836
Active Contributor
0 Kudos

I tried restricting this node to backofficerole1 but it is coming as disabled for testuser.

Isn't it showing but only in disabled state?

Former Member
0 Kudos

It was showing but disabled and when clicking it got access permissions issue.

Former Member
0 Kudos

I created "backofficerole1" and assigned it to a user "testuser".

Next I created a custom component and assigned the backofficerole1 to it as follows:

 context component="explorer-tree" merge-by="principal" principal="backofficerole1">
          <n:explorer-tree xmlns:n="http://www.hybris.com/cockpitng/config/explorertree">
              <n:navigation-node id="SEO Configuration">
                  <n:type-node id="SEOConfiguration" code="SEOConfiguration" />
              </n:navigation-node>
          </n:explorer-tree>
      </context>
  
 
  <context type="SEOConfiguration"  component="listview" principal="backofficerole1">
      <list:list-view xmlns:list="http://www.hybris.com/cockpitng/component/listView">
          <list:column qualifier="code" />
          <list:column qualifier="pageType" />
          <list:column qualifier="title" />
          <list:column qualifier="aliasName" />
          <list:column qualifier="keyword" />
          <list:column qualifier="description" />
          <list:column qualifier="metaname" />
          <list:column qualifier="metacontent" />
      </list:list-view>
  </context>

I tried restricting this node to backofficerole1 but it is coming as disabled for testuser.

Changes done as per documentation but still not working. any thoughts?

former_member625836
Active Contributor
0 Kudos
Former Member
0 Kudos

It doesn't work as the documentation you provided talks about is removing a specific node access. I am trying to grant access to a specific custom item type created and shown in left navigation in backoffice.