cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

backoffice - catalog visibility for users with multiple backoffice roles

Former Member
0 Kudos
746

We have users with multiple backoffice roles.

Backoffice role 1 should have access to all data for catalog X and backoffice role 2 should have acces to catalog Y.

example:
user is logged on as role 1 and opens the product page. He should only see the products of catalog X. When he changes his role to role 2, he should only see the products of catalog Y. This should also work for the other types for these catalogs.

What is the best practice to configure this?

Accepted Solutions (0)

Answers (1)

Answers (1)

mpern
Product and Topic Expert
Product and Topic Expert
0 Kudos

Normally, the logged in user in hybris sees the union set of all catalogversions configured on the user group(s) the user belongs to.

So if usergroup1 (with backoffice role 1) sees catalog X and usergroup2 (with backoffice role 2) sees catalog Y, and the user belongs to both groups, he or she will always see both catalog versions, regardless of the backoffice role chosen.

You would have to find a way to change the catalog versions currently active in the sessions ( catalogVersionService.setSessionCatalogVersions) when switching roles...

Former Member
0 Kudos

Another problem will rise when combining 2 roles for one user in the backoffice. If for role 1/catalog X has read/write permissions and for role 2/catalog Y there are only read permissions on eg. the products, then also permissions will be combined. According how it was set-up, it will end up with -or both read-write -or both only read. Roles are very promising but for now combining them has a lot of pitfalls. Would be better if Hybr would pick this up in a future release