Probably you know System Administrator profile, if you try to migrate change to object or field or page or application or class permissions for the profile and you try to retrieve it, you will get an error.
Entity of type 'Profile' named 'System Administrator' cannot be found
However, if you retrieve all profiles, you might find 'Admin.profile' which looks like matching to System Administrator profile.
On Profile Standard object there is no field exposed containing 'Admin'.
There is another profile called 'StandardAul.profile' amongst the ANT metadata files. I try hard to guess which profile it matches. Does it match to Standard Platform profile?
Is there any general way to match Salesforce profile name (visible on Web Interface, in Developer Console) and if you query for it by SOQL query:
[select Id, Name, Description from Profile]
to ANT Metadata File name? Retrieving package.xml containing:
<types>
<members>*</members>
<name>Profile</name>
</types>
Best Answer
I think I have finally found the solution.
While one of the possible point-and-click way is suggested by @user3375426 to create an outbound changeset and click add Profiles there (I have added here two screenshots, one for Professional Edition standard profiles mappings and another one for Enterprise Edition standard profile mappings),
another programmatic way is to query
Fullname
field on Profile using Tooling API.In
Tooling API
,name
field corresponds to the displayed name of Profile andFullname
field corresponds to Developer API Name of Profile. It is not possible to query byFullname
and query to retrieveFullname
are limited by 1 row, so it is not possible to get Developer API Name of every profile at once, however, it is possible to query one by one and retrieve their API name in such way.For example, to find 'System Administrator` profile, the following query can be used
Also, we can verify that
StandardAul
is theStandard Platform User
profile by making querySo the query results confirm that
StandardAul
is theStandard Platform User
profile.Just to summarize, the mappings for
Standard Profiles
inProfessional Edition
and the mappings for
Standard Profiles
inEnterprise Edition