How to enable creating Activities inside a new Brand | AEM 6.5

Last update: 2022-11-08

Description

Environment
Adobe Experience Manager

Issue
In Adobe Experience Manager 6.5, after creating a new Brand, you can’t create Activities inside the Brand.

You can create Activities inside the existing Brand (For example: Brand = “We.Retail”):

  1. Go to /aem/start.html.
  2. Open PersonalizationActivities.
  3. Create a Brand.
  4. Open the new Brand and try to create an Activity.

Cause
Because of a missing permission, the node that represents a master Brand, (For example: : /content/campaigns/my_brand/master/jcr:content) does not include two required properties: cq:template and sling:resourceType.

It means that the node master is not referring to the personalization component as its resourceType, and hence it fails to load a Create button.

Resolution

Solution
Follow these steps to resolve this issue:

  1. Go to the configuration: [http://localhost:4502/system/console/configMgr/org.apache.sling.serviceusermapping.impl.ServiceUserMapperImpl.amended targeted-content](http://localhost:4502/system/console/configMgr/org.apache.sling.serviceusermapping.impl.ServiceUserMapperImpl.amended targeted-content).

  2. Change the permissions of the value for personalization-service to:

    com.day.cq.cq-personalization:personalization-service=content-writer-service,sling-scripting

    just as in the screenshot below:

  3. Create a new Brand after this fix, you will see the Create button.

  4. You can then compare the properties of both brands’ master node:

    /content/campaigns/my_brand/master/jcr:content
    

On this page