I've been working with SalesforceDX for a while now, and I've always removed profiles from deployments because of similar issues.
Often you will create a simple scratch org, write your code, and then when you retrieve it will bring everything, including profiles. The problem is that the profile metadata lists the permissions given to the profile, and some of them are not recognized by other organizations.
I keep getting similar messages like this when converting and deploying to a sandbox:
Unknown user permission: ContentWorkspaces
- Is there a way to describe what the troublesome permissions do, so I can remove the feature from the scratch org definition file?
- Is there a table that lists what are the possible permissions a profile can have, and what do they do?