1

Data category visibility can be set with roles, permission sets, or profiles. I'm not able to retrieve any of these settings.

This is the Knowledge relevant part of my package.xml:

<?xml version="1.0" encoding="UTF-8"?>
<Package xmlns="http://soap.sforce.com/2006/04/metadata">
    <types>
        <members>Knowledge__kav</members>
        <name>CustomObject</name>
    </types>
    <types>
        <members>*</members>
        <name>DataCategoryGroup</name>
    </types>
    <types>
        <members>*</members>
        <name>PermissionSet</name>
    </types>
    <types>
        <members>*</members>
        <name>Profile</name>
    </types>
    <types>
        <members>*</members>
        <name>Role</name>
    </types>
    <version>48.0</version>
</Package>

I don't find informations about category group visibility neither in permissionsets, profiles, roles nor datacategorygroups.

1 Answer 1

3

Data category visibility information is stored in the profile and permission set. Visibility information can only be retrieved using Profile(Permission set does not support category visibility information at the metadata level).

Also, Salesforce recommends that you manually create data categories and record associations in an organization

1
  • Data category visibility can be set on profiles, permission sets and roles. I wanted to know how to retrieve the last association but maybe is better to update the question for a more general question.
    – gvgramazio
    Commented Mar 20, 2020 at 17:00

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .