Limit portal user access to products

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Mark
    Senior Member
    • Dec 2019
    • 143

    Limit portal user access to products

    Hi,
    How could we limit the access to products and categories (From sales pack extension) to portal users? Since we need them to see products that are associated with their account
  • rabii
    Active Community Member
    • Jun 2016
    • 1250

    #2
    Hi Mark,

    Try this below:

    1- create a file under custom/Espo/Custom/Resources/metadata/scopes/Product.json and copy code below

    Code:
    {
    "aclPortalLevelList": [
    "all",
    "account",
    "contact",
    "own",
    "no"
    ]
    }
    This will allow you to chose on the portal user role / product read [All/Account/Contact/Own/No], see attached screenshot. Please keep in mind that i have not tried from portal to see if it works, please share if you try it and it works.

    Good luck
    Attached Files
    Rabii
    Web Dev

    Comment

    Working...