on ‎2020 Nov 10 12:20 PM
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!
Request clarification before answering.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.