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

To resolve the issue, go to the configuration, change the permissions of the value for personalization-service, create a new Brand after the fix, then compare the properties of both brands’ master node.

Description description

Environment
Adobe Experience Manager 6.5 (AEM 6.5)

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 Personalization > Activities.
  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) doesn’t include two required properties: cq:template and sling:resourceType.

It means that the node master isn’t referring to the personalization component as its resourceType, and it fails to load a Create button.

Resolution 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:

    code language-none
    /content/campaigns/<my_brand>/master/jcr:content
    
recommendation-more-help
3d58f420-19b5-47a0-a122-5c9dab55ec7f