In Community Builder, if you create audiences and assign them to page variations, you cannot deploy these using change sets, according to Considerations for Deploying Communities with Change Sets. In fact, Audience doesn't even appear in the list of change set components.

On the other hand, Audience metadata can be deployed using the ant migration tool, so I was hopeful that the audience assignments would also be deployable.

Unfortunately, I haven't had success in deploying any audience assignments, either for entire pages or for components on a page. Has anyone found a workaround for deploying audience assignments for Community Builder pages? I should say that I'm using the Build Your Own template.

If it can't be deployed, is there at least a way to get a list of audience assignments so I don't have to open every single page in the Community Builder to check?

Here's what I'm using in my package.xml manifest. All the community builder page variations and all the audiences are created correctly, but the assignments are not.

  • just to clarify, you mean a page variation with its assigned audience?
    – glls
    May 6, 2019 at 21:49
  • Yes, a page variation with its assigned audience, but also an assigned component within a page. I've edited my post to include that. May 6, 2019 at 23:00
  • @DavidCheng did you manage to deploy audiences with their assignments? I've found that assignment can be found in Audience xml file, under <target> tag as it is here: developer.salesforce.com/docs/atlas.en-us.api_meta.meta/… Unfortunately, I can't retrieve this target and I'm wondering if someone has successfully deployed audiences with assignments.
    – jm.
    Dec 18, 2019 at 14:16
  • @jm.No I had to recreate all the assignments manually. Dec 18, 2019 at 14:52
  • did you try experience bundle developer.salesforce.com/docs/atlas.en-us.communities_dev.meta/…
    – sdandamud1
    Jan 22, 2020 at 15:06

1 Answer 1


@DavidCheng, @EnrikHysko, just wanted to share my findings. ExperienceBundle does not help with audience assignments. But with metadata api (ant deployment) the audience and assignments can be migrated. The 'Audience' metadata type in the package.xml works.


The target tag in the retrieved components have the assignment related details and gets deployed to the target environment. Hope this helps.

  • Please include an example of the package.xml for the Audience metadata type.
    – Dave Humm
    Nov 18, 2020 at 10:14
  • @DaveHumm, added the example package.xml in my answer.
    – bgOnCloud
    Dec 1, 2020 at 10:35

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.