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

visibility rules for a specific product items for a user group

883

Hello experts,

What exactly needs to be set up to create visibility rules for a specific product items for a user group? A search restriction on type Usergroup ? An item access right for type UserGroup?

Thanks!

View Entire Topic
geffchang
Active Contributor

UAC (or item access right, as you say) affects all instances of a Type that you restrict. If you say that customgroup has no read access to Catalog type, then any user belonging to customgroup cannot see all Catalog instances.

$START_USERRIGHTS;;;;;;;;;
Type;UID;MemberOfGroups;Password;Target;read;change;create;remove;change_perm
UserGroup;customgroup;;;;;;;;
;;;;Catalog;-;;;;;
$END_USERRIGHTS;;;;;

On the other hand, Search Restriction allows you to create a query of what should be visible. In example below, any user belonging to customgroup (the principal) can see all Catalogs (the restricted type) except the Catalog which has an ID of "_boconfig" (the query).

INSERT_UPDATE SearchRestriction;code[unique=true];active;generate;restrictedType(code);principal(uid);query
;Backoffice_Media_Catalog;true;false;Catalog;customgroup;"{id} not in ('_boconfig')"

As you can see, the SearchRestriction type is more flexible, and you can also have queries that "join" or relate to other Types.