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”):
- Go to
/aem/start.html
. - Open Personalization
>
Activities. - Create a Brand.
- 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:
-
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).
-
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:
-
Create a new Brand after this fix, you will see the Create button.
-
You can then compare the properties of both brands’ master node:
code language-none /content/campaigns/<my_brand>/master/jcr:content