I want to migrate a Profile using the Metadata Api, or the Eclipse IDE. The problem is that the License of the Profile is not part of the metadata. The profiles I want to migrate have a license of 'Salesforce Platform', but when I migrate them, it seems to get set to 'Salesforce'. How can I get round this?
When creating new custom profiles in a sandbox via the browser, I can clone either license types "salesforce" or "salesforce platform" (when platform licenses are enabled that is).
However, when trying to deploy theses profiles to the production org with the IDE (or ant tool), they will be created as type "salesforce" and are not available for platform users. When looking at the profile in the IDE, there is no way to distinguish both types.
So instead of deploying them, I have to re-create them manually in the production org which is time consuming and error prone.
Is this expected behavior or a bug?