function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Neha RNeha R 

How to migrate connected app profile permissions from one org to another using ant

<types>
        <members>*</members>
        <name>Profile</name>
    </types>
 <types>
        <members>*</members>
        <name>ConnectedApp</name>
    </types>
in package.xml just pulls the connected app configuration, the .profile files do not have a mention of the connected app even when the app is assigned to the profile, what tag to use to pull connected app profile permissions using package.xml 
pconpcon
I've not tried to pull profiles assigned to connected apps via Ant but that should be correct.  I have found that there are somethings (and it would not suprise me if this is one of them) that have to be done manually.  Are you able to push the profile and connected app joining via a changeset?
Michael PaisnerMichael Paisner
This is still an issue as of API version 53.0.  Retrieving the Permission Set and Connected App using ANT still fails to retrieve the security that the Permission Set grants to the Connected App.  It appears that setting the Connected App security within the Permission Set must still be done manually.