<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>Question Re: Backoffice Restrictions only for update Product with specific properties in CRM and CX Q&amp;A</title>
    <link>https://community.sap.com/t5/crm-and-cx-q-a/backoffice-restrictions-only-for-update-product-with-specific-properties/qaa-p/12530808#M437817</link>
    <description>&lt;P&gt;You can implement PrepareInterceptor for that&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;PRE&gt;&lt;CODE&gt;@Override&lt;BR /&gt;public void onPrepare(ProductModel productModel, InterceptorContext ctx) throws InterceptorException&lt;BR /&gt;{
    EmployeeModel employee = // get current user
    if (Boolean.TRUE.equals(productModel.getIsNational()) &amp;amp;&amp;amp; // logic for your employee) {
        throw new InterceptorException("You cannot modify this product");
    }
}&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Mon, 21 Feb 2022 03:46:23 GMT</pubDate>
    <dc:creator>adiputera</dc:creator>
    <dc:date>2022-02-21T03:46:23Z</dc:date>
    <item>
      <title>Backoffice Restrictions only for update Product with specific properties</title>
      <link>https://community.sap.com/t5/crm-and-cx-q-a/backoffice-restrictions-only-for-update-product-with-specific-properties/qaq-p/12530807</link>
      <description>&lt;P&gt;Hello Experts,&lt;/P&gt;
  &lt;P&gt;I have the following group of employees that I have called coustomercaregroup and I also set the userrights in this way:&lt;/P&gt;
  &lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/1996729-impex-userrights.png" /&gt;&lt;/P&gt;
  &lt;P&gt;Now, i would like that this group can see through backoffice all types of Products but can modify only the products that have a certain value inside the attribute ProductModel.national = false (boolean), only in this case people that belong to this group can modify the product otherwise they cannot. If a product has in the field Product.national=true then who belongs to the customercaregroup can only visualize it but not modify it.&lt;/P&gt;
  &lt;P&gt;I don't know if it's possible to do something like this and I don't even know how to do it. Can anyone tell me how to do this?&lt;/P&gt;
  &lt;P&gt;Maybe i need to modify SolrIndexerQuery for Products? But how?&lt;/P&gt;
  &lt;P&gt;I would prefer a solution via impex but any advice is welcome.&lt;/P&gt;
  &lt;P&gt;Thanks in advance for the help&lt;/P&gt;</description>
      <pubDate>Thu, 25 Nov 2021 22:24:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/crm-and-cx-q-a/backoffice-restrictions-only-for-update-product-with-specific-properties/qaq-p/12530807</guid>
      <dc:creator>former_member748269</dc:creator>
      <dc:date>2021-11-25T22:24:35Z</dc:date>
    </item>
    <item>
      <title>Re: Backoffice Restrictions only for update Product with specific properties</title>
      <link>https://community.sap.com/t5/crm-and-cx-q-a/backoffice-restrictions-only-for-update-product-with-specific-properties/qaa-p/12530808#M437817</link>
      <description>&lt;P&gt;You can implement PrepareInterceptor for that&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;PRE&gt;&lt;CODE&gt;@Override&lt;BR /&gt;public void onPrepare(ProductModel productModel, InterceptorContext ctx) throws InterceptorException&lt;BR /&gt;{
    EmployeeModel employee = // get current user
    if (Boolean.TRUE.equals(productModel.getIsNational()) &amp;amp;&amp;amp; // logic for your employee) {
        throw new InterceptorException("You cannot modify this product");
    }
}&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 21 Feb 2022 03:46:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/crm-and-cx-q-a/backoffice-restrictions-only-for-update-product-with-specific-properties/qaa-p/12530808#M437817</guid>
      <dc:creator>adiputera</dc:creator>
      <dc:date>2022-02-21T03:46:23Z</dc:date>
    </item>
  </channel>
</rss>

