+ Start a Discussion
BeBackBeBack 

User Permissions with Ant Migration tool

Hello everyone,

I'm trying to deploy User Permissions (such as "Export Reports") with Ant Migration tool, but without any success.
I know it's available with Admin Change Sets (Release Notes of Winter 14 (p248) : User permissions (such as “Manage Users”) are now included in profile settings for change sets.)

Is there someone who could explain me how to do the same with Ant (if possible with this tool).

Thanks in advance,

Bertrand
Ashish_SFDCAshish_SFDC
Hi , 


See the discussion on the thread below, 

http://salesforce.stackexchange.com/questions/21722/are-profile-and-permission-set-metadata-files-getting-all-project-objectpermissi


Regards,
Ashish
BeBackBeBack
Hi Ashish,

Thanks for your answer, but it does not solve my problem.
Actually, I already know how to deploy Object and Field visibility for a specific Profile, what I'm struggling with is to retrieve User Permissions for a Profile.
When you make a Change Set, automatically all User Permissions are added to the Profile you add in, but it's not the case with Ant Migration tool.

I tried to add :
<types>
  <members>*</members>
  <name>PermissionSet</name>
</types>

But didn't worked either.

Regards,

Bertrand

Always ThinkinAlways Thinkin
Hi Bertrand, are you using the latest install of Ant and updating your package.xml version to 31.0? I was able to get User Permissions where they are True with the following package.xml

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