[SalesForce] Deploy Community Builder audience page assignments with ant migration tool

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.

<types>
    <members>*</members>
    <name>Audience</name>
</types>
<types>
    <members>*</members>
    <name>CustomSite</name>
</types>
<types>
    <members>*</members>
    <name>SiteDotCom</name>
</types>

Best Answer

@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.

<types>
    <members>*</members>
    <name>Audience</name>
</types>

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