How to move Managed Package profile and permission set permissions using ANT tool?

Package.xml:

<?xml version="1.0" encoding="UTF-8"?>
<Package xmlns="http://soap.sforce.com/2006/04/metadata">
    <types>
        <members>Name Prefix__Component Name</members>
        <name>Component</name>
    </types>
    <types>
        <members>*</members>
        <name>PermissionSet</name>
    </types>
<types>
        <members>*</members>
        <name>Profile</name>
    </types>
    <version>30.0</version>
</Package>

Note:
Here Component Name is the name of the component and Component is Salesforce component.

Example:
Package.xml:

<?xml version="1.0" encoding="UTF-8"?>
<Package xmlns="http://soap.sforce.com/2006/04/metadata">
    <types>
        <members>aaBB__Sample</members>
        <name>ApexPage</name>
    </types>
    <types>
        <members>*</members>
        <name>PermissionSet</name>
    </types>
<types>
        <members>*</members>
        <name>Profile</name>
    </types>
    <version>30.0</version>
</Package>

Cheers!!!

No comments:

Post a Comment